1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-19 07:59:24 +03:00
nixpkgs/pkgs/development/python-modules/jsonschema/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

61 lines
1.1 KiB
Nix
Raw Normal View History

2022-01-12 17:09:29 +01:00
{ lib
2019-10-24 08:47:36 +02:00
, attrs
2022-01-12 17:09:29 +01:00
, buildPythonPackage
, fetchPypi
2019-10-24 08:47:36 +02:00
, importlib-metadata
2022-01-12 17:09:29 +01:00
, importlib-resources
2019-10-24 08:47:36 +02:00
, pyperf
, pyrsistent
2022-01-12 17:09:29 +01:00
, pytestCheckHook
, pythonOlder
, setuptools-scm
2019-10-24 08:47:36 +02:00
, twisted
2022-01-12 17:09:29 +01:00
, typing-extensions
2019-10-24 08:47:36 +02:00
}:
buildPythonPackage rec {
pname = "jsonschema";
version = "4.4.0";
format = "pyproject";
2022-01-12 17:09:29 +01:00
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "636694eb41b3535ed608fe04129f26542b59ed99808b4f688aa32dcf55317a83";
};
2022-01-12 17:09:29 +01:00
SETUPTOOLS_SCM_PRETEND_VERSION = version;
nativeBuildInputs = [
setuptools-scm
];
propagatedBuildInputs = [
attrs
pyrsistent
] ++ lib.optionals (pythonOlder "3.8") [
importlib-metadata
typing-extensions
] ++ lib.optionals (pythonOlder "3.9") [
importlib-resources
];
2022-01-12 17:09:29 +01:00
checkInputs = [
pyperf
pytestCheckHook
twisted
];
pythonImportsCheck = [
"jsonschema"
];
2019-10-24 08:47:36 +02:00
meta = with lib; {
description = "An implementation of JSON Schema validation for Python";
2022-01-12 17:09:29 +01:00
homepage = "https://github.com/Julian/jsonschema";
license = licenses.mit;
maintainers = with maintainers; [ domenkozar ];
};
}