diff options
author | Chris Ostrouchov <chris.ostrouchov@gmail.com> | 2019-07-16 16:30:08 -0400 |
---|---|---|
committer | Frederik Rietdijk <fridh@fridh.nl> | 2019-07-20 09:22:30 +0200 |
commit | ba4384d8650de330fd218f08e8679e1d486bd1dc (patch) | |
tree | 28b6826dc697f68e76f3a35d506a918cfe95a257 /pkgs/development/python-modules | |
parent | f10553883d5bdb964a497680b77ac73d42cebddc (diff) | |
download | nixlib-ba4384d8650de330fd218f08e8679e1d486bd1dc.tar nixlib-ba4384d8650de330fd218f08e8679e1d486bd1dc.tar.gz nixlib-ba4384d8650de330fd218f08e8679e1d486bd1dc.tar.bz2 nixlib-ba4384d8650de330fd218f08e8679e1d486bd1dc.tar.lz nixlib-ba4384d8650de330fd218f08e8679e1d486bd1dc.tar.xz nixlib-ba4384d8650de330fd218f08e8679e1d486bd1dc.tar.zst nixlib-ba4384d8650de330fd218f08e8679e1d486bd1dc.zip |
pythonPackages.jsonschema: 2.6.0 -> 3.0.1
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r-- | pkgs/development/python-modules/jsonschema/default.nix | 48 |
1 files changed, 34 insertions, 14 deletions
diff --git a/pkgs/development/python-modules/jsonschema/default.nix b/pkgs/development/python-modules/jsonschema/default.nix index db6be9f99182..dfff4ac42656 100644 --- a/pkgs/development/python-modules/jsonschema/default.nix +++ b/pkgs/development/python-modules/jsonschema/default.nix @@ -1,31 +1,51 @@ -{ stdenv, buildPythonPackage, fetchPypi, python -, nose, mock, vcversioner, functools32 }: +{ lib +, buildPythonPackage +, fetchPypi +, attrs +, pyrsistent +, setuptools +, six +, functools32 +, setuptools_scm +, perf +, twisted +, python +}: buildPythonPackage rec { pname = "jsonschema"; - version = "2.6.0"; + version = "3.0.1"; src = fetchPypi { inherit pname version; - sha256 = "00kf3zmpp9ya4sydffpifn0j0mzm342a2vzh82p6r0vh10cg7xbg"; + sha256 = "03g20i1xfg4qdlk4475pl4pp7y0h37g1fbgs5qhy678q9xb822hc"; }; - checkInputs = [ nose mock vcversioner ]; - propagatedBuildInputs = [ functools32 ]; + nativeBuildInputs = [ + setuptools_scm + ]; - postPatch = '' - substituteInPlace jsonschema/tests/test_jsonschema_test_suite.py \ - --replace "python" "${python.pythonForBuild.interpreter}" - ''; + propagatedBuildInputs = [ + attrs + pyrsistent + setuptools + six + functools32 + ]; + + checkInputs = [ + twisted + perf + ]; checkPhase = '' - nosetests + ${python.interpreter} setup.py test --test-suite=jsonschema.tests ''; - meta = with stdenv.lib; { - homepage = https://github.com/Julian/jsonschema; + meta = with lib; { description = "An implementation of JSON Schema validation for Python"; + homepage = https://github.com/Julian/jsonschema; license = licenses.mit; - maintainers = with maintainers; [ domenkozar ]; + maintainers = with maintainers; [ costrouc domenkozar ]; }; } |