2017-09-05 10:16:41 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, python
|
|
|
|
, nose, mock, vcversioner, functools32 }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "jsonschema";
|
|
|
|
version = "2.6.0";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "00kf3zmpp9ya4sydffpifn0j0mzm342a2vzh82p6r0vh10cg7xbg";
|
|
|
|
};
|
|
|
|
|
2019-01-05 10:54:27 +00:00
|
|
|
checkInputs = [ nose mock vcversioner ];
|
2017-09-05 10:16:41 +01:00
|
|
|
propagatedBuildInputs = [ functools32 ];
|
|
|
|
|
2019-01-05 10:54:27 +00:00
|
|
|
postPatch = ''
|
2017-09-05 10:16:41 +01:00
|
|
|
substituteInPlace jsonschema/tests/test_jsonschema_test_suite.py \
|
2019-01-05 10:54:27 +00:00
|
|
|
--replace "python" "${python.pythonForBuild.interpreter}"
|
2017-09-05 10:16:41 +01:00
|
|
|
'';
|
|
|
|
|
2019-01-05 10:54:27 +00:00
|
|
|
checkPhase = ''
|
|
|
|
nosetests
|
|
|
|
'';
|
2017-09-05 10:16:41 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://github.com/Julian/jsonschema;
|
|
|
|
description = "An implementation of JSON Schema validation for Python";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ domenkozar ];
|
|
|
|
};
|
|
|
|
}
|