2020-04-24 23:36:52 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, python, isPy27
|
|
|
|
, attrs
|
|
|
|
, functools32
|
|
|
|
, importlib-metadata
|
|
|
|
, mock
|
|
|
|
, nose
|
|
|
|
, pyperf
|
|
|
|
, pyrsistent
|
2021-06-04 09:07:49 +00:00
|
|
|
, setuptools-scm
|
2020-04-24 23:36:52 +00:00
|
|
|
, twisted
|
|
|
|
, vcversioner
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "jsonschema";
|
|
|
|
version = "3.2.0";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "c8a85b28d377cc7737e46e2d9f2b4f44ee3c0e1deac6bf46ddefc7187d30797a";
|
|
|
|
};
|
|
|
|
|
2021-06-04 09:07:49 +00:00
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [ attrs importlib-metadata functools32 pyrsistent ];
|
|
|
|
checkInputs = [ nose mock pyperf twisted vcversioner ];
|
|
|
|
|
|
|
|
# zope namespace collides on py27
|
|
|
|
doCheck = !isPy27;
|
|
|
|
checkPhase = ''
|
|
|
|
nosetests
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/Julian/jsonschema";
|
|
|
|
description = "An implementation of JSON Schema validation for Python";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ domenkozar ];
|
|
|
|
};
|
|
|
|
}
|