2024-05-15 15:35:15 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
attrs,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
hatch-vcs,
|
|
|
|
hatchling,
|
|
|
|
jsonschema,
|
|
|
|
pytest-subtests,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
rpds-py,
|
2023-07-15 17:15:38 +00:00
|
|
|
}:
|
|
|
|
|
2023-08-10 07:59:29 +00:00
|
|
|
let
|
|
|
|
self = buildPythonPackage rec {
|
|
|
|
pname = "referencing";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "0.34.0";
|
|
|
|
pyproject = true;
|
2023-07-15 17:15:38 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2023-08-10 07:59:29 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "python-jsonschema";
|
|
|
|
repo = "referencing";
|
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
fetchSubmodules = true;
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-Vx+WVgt09I04Z/sIYsLLtPCwuo5wW0Z2o2OTH2V17UY=";
|
2023-08-10 07:59:29 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
build-system = [
|
2023-08-10 07:59:29 +00:00
|
|
|
hatch-vcs
|
|
|
|
hatchling
|
|
|
|
];
|
2023-07-15 17:15:38 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
dependencies = [
|
2023-08-10 07:59:29 +00:00
|
|
|
attrs
|
|
|
|
rpds-py
|
|
|
|
];
|
2023-07-15 17:15:38 +00:00
|
|
|
|
2023-08-10 07:59:29 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
jsonschema
|
|
|
|
pytest-subtests
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2023-07-15 17:15:38 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
# Avoid infinite recursion with jsonschema
|
2023-08-10 07:59:29 +00:00
|
|
|
doCheck = false;
|
2023-07-15 17:15:38 +00:00
|
|
|
|
2023-08-10 07:59:29 +00:00
|
|
|
passthru.tests.referencing = self.overridePythonAttrs { doCheck = true; };
|
2023-07-15 17:15:38 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
pythonImportsCheck = [ "referencing" ];
|
2023-07-15 17:15:38 +00:00
|
|
|
|
2023-08-10 07:59:29 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Cross-specification JSON referencing";
|
|
|
|
homepage = "https://github.com/python-jsonschema/referencing";
|
2024-05-15 15:35:15 +00:00
|
|
|
changelog = "https://github.com/python-jsonschema/referencing/releases/tag/v${version}";
|
2023-08-10 07:59:29 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
2023-08-10 07:59:29 +00:00
|
|
|
in
|
2024-05-15 15:35:15 +00:00
|
|
|
self
|