Revert "pythonPackages.jsonschema: 2.6.0 -> 3.0.1"

Too soon. We need to wait till it is better supported.

This reverts commit ba4384d865.
This commit is contained in:
Frederik Rietdijk 2019-07-20 11:03:08 +02:00
parent b038b6db3d
commit e18dc13e50

View File

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