From 83fa3783c5a256eca23a0a747204de34a841c5ae Mon Sep 17 00:00:00 2001 From: Frank Moda Date: Sat, 3 Sep 2022 17:12:38 -0400 Subject: python3Packages.jsons: init at 1.6.3 --- pkgs/development/python-modules/jsons/default.nix | 47 +++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 pkgs/development/python-modules/jsons/default.nix (limited to 'pkgs/development/python-modules/jsons') diff --git a/pkgs/development/python-modules/jsons/default.nix b/pkgs/development/python-modules/jsons/default.nix new file mode 100644 index 0000000000000..9d1083bb47c32 --- /dev/null +++ b/pkgs/development/python-modules/jsons/default.nix @@ -0,0 +1,47 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, attrs +, pytestCheckHook +, typish +, tzdata +}: + +buildPythonPackage rec { + pname = "jsons"; + version = "1.6.3"; + + src = fetchFromGitHub { + owner = "ramonhagenaars"; + repo = "jsons"; + rev = "v${version}"; + sha256 = "0sdwc57f3lwzhbcapjdbay9f8rn65rlspxa67a2i5apcgg403qpc"; + }; + + propagatedBuildInputs = [ + typish + ]; + + checkInputs = [ + attrs + pytestCheckHook + tzdata + ]; + + disabledTestPaths = [ + # These tests are based on timings, which fail + # on slow or overloaded machines. + "tests/test_performance.py" + ]; + + pythonImportsCheck = [ + "jsons" + ]; + + meta = with lib; { + description = "Turn Python objects into dicts or json strings and back"; + homepage = "https://github.com/ramonhagenaars/jsons"; + license = licenses.mit; + maintainers = with maintainers; [ fmoda3 ]; + }; +} -- cgit 1.4.1