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