2019-07-16 21:30:08 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, attrs
|
|
|
|
, pyrsistent
|
|
|
|
, setuptools
|
|
|
|
, six
|
|
|
|
, functools32
|
|
|
|
, setuptools_scm
|
|
|
|
, perf
|
|
|
|
, twisted
|
|
|
|
, python
|
|
|
|
}:
|
2017-09-05 10:16:41 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "jsonschema";
|
2019-07-16 21:30:08 +01:00
|
|
|
version = "3.0.1";
|
2017-09-05 10:16:41 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-07-16 21:30:08 +01:00
|
|
|
sha256 = "03g20i1xfg4qdlk4475pl4pp7y0h37g1fbgs5qhy678q9xb822hc";
|
2017-09-05 10:16:41 +01:00
|
|
|
};
|
|
|
|
|
2019-07-16 21:30:08 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools_scm
|
|
|
|
];
|
2017-09-05 10:16:41 +01:00
|
|
|
|
2019-07-16 21:30:08 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
attrs
|
|
|
|
pyrsistent
|
|
|
|
setuptools
|
|
|
|
six
|
|
|
|
functools32
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
twisted
|
|
|
|
perf
|
|
|
|
];
|
2017-09-05 10:16:41 +01:00
|
|
|
|
2019-01-05 10:54:27 +00:00
|
|
|
checkPhase = ''
|
2019-07-16 21:30:08 +01:00
|
|
|
${python.interpreter} setup.py test --test-suite=jsonschema.tests
|
2019-01-05 10:54:27 +00:00
|
|
|
'';
|
2017-09-05 10:16:41 +01:00
|
|
|
|
2019-07-16 21:30:08 +01:00
|
|
|
meta = with lib; {
|
2017-09-05 10:16:41 +01:00
|
|
|
description = "An implementation of JSON Schema validation for Python";
|
2019-07-16 21:30:08 +01:00
|
|
|
homepage = https://github.com/Julian/jsonschema;
|
2017-09-05 10:16:41 +01:00
|
|
|
license = licenses.mit;
|
2019-07-16 21:30:08 +01:00
|
|
|
maintainers = with maintainers; [ costrouc domenkozar ];
|
2017-09-05 10:16:41 +01:00
|
|
|
};
|
|
|
|
}
|