depot/third_party/nixpkgs/pkgs/development/python-modules/jsonschema-specifications/default.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

50 lines
1,003 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, hatch-vcs
, hatchling
, importlib-resources
, pytestCheckHook
, pythonOlder
, referencing
}:
buildPythonPackage rec {
pname = "jsonschema-specifications";
version = "2023.11.2";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchPypi {
pname = "jsonschema_specifications";
inherit version;
hash = "sha256-lHL8T+pHTNdL6korGQ2uzLWp5NsuqA7896G1gvyagbg=";
};
nativeBuildInputs = [
hatch-vcs
hatchling
];
propagatedBuildInputs = [
referencing
] ++ lib.optionals (pythonOlder "3.9") [
importlib-resources
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"jsonschema_specifications"
];
meta = with lib; {
description = "Support files exposing JSON from the JSON Schema specifications";
homepage = "https://github.com/python-jsonschema/jsonschema-specifications";
license = licenses.mit;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}