superfile: 1.1.6 -> 1.1.7 (#371308)
[NixPkgs.git] / pkgs / development / python-modules / referencing / default.nix
blob4a879cef4ab55ef5c519056ad0de4175758233fb
2   lib,
3   attrs,
4   buildPythonPackage,
5   fetchFromGitHub,
6   hatch-vcs,
7   hatchling,
8   jsonschema,
9   pytest-subtests,
10   pytestCheckHook,
11   pythonOlder,
12   rpds-py,
15 let
16   self = buildPythonPackage rec {
17     pname = "referencing";
18     version = "0.35.1";
19     pyproject = true;
21     disabled = pythonOlder "3.8";
23     src = fetchFromGitHub {
24       owner = "python-jsonschema";
25       repo = "referencing";
26       tag = "v${version}";
27       fetchSubmodules = true;
28       hash = "sha256-Ix0cpdOs7CtersdfW9daF/+BEJaV/na1WRTlYywUJV8=";
29     };
31     build-system = [
32       hatch-vcs
33       hatchling
34     ];
36     dependencies = [
37       attrs
38       rpds-py
39     ];
41     nativeCheckInputs = [
42       jsonschema
43       pytest-subtests
44       pytestCheckHook
45     ];
47     # Avoid infinite recursion with jsonschema
48     doCheck = false;
50     passthru.tests.referencing = self.overridePythonAttrs { doCheck = true; };
52     pythonImportsCheck = [ "referencing" ];
54     meta = with lib; {
55       description = "Cross-specification JSON referencing";
56       homepage = "https://github.com/python-jsonschema/referencing";
57       changelog = "https://github.com/python-jsonschema/referencing/releases/tag/v${version}";
58       license = licenses.mit;
59       maintainers = with maintainers; [ fab ];
60     };
61   };
63 self