pythonPackages.jsonschema: 2.6.0 -> 3.0.1

This commit is contained in:
Chris Ostrouchov 2019-07-16 16:30:08 -04:00 committed by Frederik Rietdijk
parent f10553883d
commit ba4384d865

View file

@ -1,31 +1,51 @@
{ stdenv, buildPythonPackage, fetchPypi, python { lib
, nose, mock, vcversioner, functools32 }: , buildPythonPackage
, fetchPypi
, attrs
, pyrsistent
, setuptools
, six
, functools32
, setuptools_scm
, perf
, twisted
, python
}:
buildPythonPackage rec { buildPythonPackage rec {
pname = "jsonschema"; pname = "jsonschema";
version = "2.6.0"; version = "3.0.1";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "00kf3zmpp9ya4sydffpifn0j0mzm342a2vzh82p6r0vh10cg7xbg"; sha256 = "03g20i1xfg4qdlk4475pl4pp7y0h37g1fbgs5qhy678q9xb822hc";
}; };
checkInputs = [ nose mock vcversioner ]; nativeBuildInputs = [
propagatedBuildInputs = [ functools32 ]; setuptools_scm
];
postPatch = '' propagatedBuildInputs = [
substituteInPlace jsonschema/tests/test_jsonschema_test_suite.py \ attrs
--replace "python" "${python.pythonForBuild.interpreter}" pyrsistent
''; setuptools
six
functools32
];
checkInputs = [
twisted
perf
];
checkPhase = '' checkPhase = ''
nosetests ${python.interpreter} setup.py test --test-suite=jsonschema.tests
''; '';
meta = with stdenv.lib; { meta = with lib; {
homepage = https://github.com/Julian/jsonschema;
description = "An implementation of JSON Schema validation for Python"; description = "An implementation of JSON Schema validation for Python";
homepage = https://github.com/Julian/jsonschema;
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ domenkozar ]; maintainers = with maintainers; [ costrouc domenkozar ];
}; };
} }