checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
40 lines
895 B
Nix
40 lines
895 B
Nix
{ lib, buildPythonPackage, fetchPypi, isPy27
|
|
, attrs
|
|
, functools32
|
|
, importlib-metadata
|
|
, mock
|
|
, nose
|
|
, pyperf
|
|
, pyrsistent
|
|
, setuptools-scm
|
|
, twisted
|
|
, vcversioner
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "jsonschema";
|
|
version = "3.2.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "c8a85b28d377cc7737e46e2d9f2b4f44ee3c0e1deac6bf46ddefc7187d30797a";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
|
propagatedBuildInputs = [ attrs importlib-metadata functools32 pyrsistent ];
|
|
nativeCheckInputs = [ 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 ];
|
|
};
|
|
}
|