diff options
author | Frank Moda <fmoda3@mac.com> | 2022-09-03 17:12:38 -0400 |
---|---|---|
committer | Frank Moda <fmoda3@mac.com> | 2022-09-04 09:57:50 -0400 |
commit | 83fa3783c5a256eca23a0a747204de34a841c5ae (patch) | |
tree | bf02e33b72b622d2957033862acb9699bbe582d1 /pkgs/development/python-modules/jsons | |
parent | f69e050cd060e5b70aef311d8f462be878873a8e (diff) |
python3Packages.jsons: init at 1.6.3
Diffstat (limited to 'pkgs/development/python-modules/jsons')
-rw-r--r-- | pkgs/development/python-modules/jsons/default.nix | 47 |
1 files changed, 47 insertions, 0 deletions
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 ]; + }; +} |