2019-01-07 19:25:57 +01:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, isPy27, callPackage
|
|
|
|
, attrs
|
|
|
|
, pyrsistent
|
|
|
|
, six
|
|
|
|
, functools32
|
|
|
|
, lockfile
|
|
|
|
, setuptools_scm
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "jsonschema";
|
2019-04-16 19:15:38 +02:00
|
|
|
version = "3.0.1";
|
2019-01-07 19:25:57 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-04-16 19:15:38 +02:00
|
|
|
sha256 = "0c0a81564f181de3212efa2d17de1910f8732fa1b71c42266d983cd74304e20d";
|
2019-01-07 19:25:57 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ setuptools_scm ];
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
attrs
|
|
|
|
pyrsistent
|
|
|
|
six
|
|
|
|
lockfile
|
|
|
|
] ++ lib.optional isPy27 functools32;
|
|
|
|
|
|
|
|
# tests for latest version rely on custom version of betterpaths that is
|
|
|
|
# difficult to deal with and isn't used on master
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = https://github.com/Julian/jsonschema;
|
|
|
|
description = "An implementation of JSON Schema validation for Python";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ jakewaksbaum ];
|
|
|
|
};
|
|
|
|
}
|