1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/python-modules/jsonschema/default.nix

40 lines
895 B
Nix
Raw Normal View History

2019-10-24 07:47:36 +01:00
{ lib, buildPythonPackage, fetchPypi, python, isPy27
, attrs
, functools32
, importlib-metadata
, mock
, nose
, pyperf
, pyrsistent
, setuptools_scm
, twisted
, vcversioner
}:
buildPythonPackage rec {
pname = "jsonschema";
2019-12-19 19:31:14 +00:00
version = "3.2.0";
src = fetchPypi {
inherit pname version;
2019-12-19 19:31:14 +00:00
sha256 = "c8a85b28d377cc7737e46e2d9f2b4f44ee3c0e1deac6bf46ddefc7187d30797a";
};
2019-10-24 07:47:36 +01:00
nativeBuildInputs = [ setuptools_scm ];
propagatedBuildInputs = [ attrs importlib-metadata functools32 pyrsistent ];
checkInputs = [ nose mock pyperf twisted vcversioner ];
2019-10-24 07:47:36 +01:00
# zope namespace collides on py27
doCheck = !isPy27;
checkPhase = ''
nosetests
'';
2019-10-24 07:47:36 +01:00
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 ];
};
}