2019-10-24 08:47:36 +02:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, python, isPy27
|
|
|
|
, attrs
|
|
|
|
, functools32
|
|
|
|
, importlib-metadata
|
|
|
|
, mock
|
|
|
|
, nose
|
|
|
|
, pyperf
|
|
|
|
, pyrsistent
|
|
|
|
, setuptools_scm
|
|
|
|
, twisted
|
|
|
|
, vcversioner
|
|
|
|
}:
|
2017-09-05 11:16:41 +02:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "jsonschema";
|
2019-12-19 20:31:14 +01:00
|
|
|
version = "3.2.0";
|
2017-09-05 11:16:41 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-12-19 20:31:14 +01:00
|
|
|
sha256 = "c8a85b28d377cc7737e46e2d9f2b4f44ee3c0e1deac6bf46ddefc7187d30797a";
|
2017-09-05 11:16:41 +02:00
|
|
|
};
|
|
|
|
|
2019-10-24 08:47:36 +02:00
|
|
|
nativeBuildInputs = [ setuptools_scm ];
|
|
|
|
propagatedBuildInputs = [ attrs importlib-metadata functools32 pyrsistent ];
|
|
|
|
checkInputs = [ nose mock pyperf twisted vcversioner ];
|
2017-09-05 11:16:41 +02:00
|
|
|
|
2019-10-24 08:47:36 +02:00
|
|
|
# zope namespace collides on py27
|
|
|
|
doCheck = !isPy27;
|
2019-01-05 11:54:27 +01:00
|
|
|
checkPhase = ''
|
2019-07-20 11:03:08 +02:00
|
|
|
nosetests
|
2019-01-05 11:54:27 +01:00
|
|
|
'';
|
2017-09-05 11:16:41 +02:00
|
|
|
|
2019-10-24 08:47:36 +02:00
|
|
|
meta = with lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/Julian/jsonschema";
|
2019-07-20 11:03:08 +02:00
|
|
|
description = "An implementation of JSON Schema validation for Python";
|
2017-09-05 11:16:41 +02:00
|
|
|
license = licenses.mit;
|
2019-07-20 11:03:08 +02:00
|
|
|
maintainers = with maintainers; [ domenkozar ];
|
2017-09-05 11:16:41 +02:00
|
|
|
};
|
|
|
|
}
|