5c370c0b2a
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
63 lines
1.3 KiB
Nix
63 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
attrs,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
hatch-vcs,
|
|
hatchling,
|
|
jsonschema,
|
|
pytest-subtests,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
rpds-py,
|
|
}:
|
|
|
|
let
|
|
self = buildPythonPackage rec {
|
|
pname = "referencing";
|
|
version = "0.34.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "python-jsonschema";
|
|
repo = "referencing";
|
|
rev = "refs/tags/v${version}";
|
|
fetchSubmodules = true;
|
|
hash = "sha256-Vx+WVgt09I04Z/sIYsLLtPCwuo5wW0Z2o2OTH2V17UY=";
|
|
};
|
|
|
|
build-system = [
|
|
hatch-vcs
|
|
hatchling
|
|
];
|
|
|
|
dependencies = [
|
|
attrs
|
|
rpds-py
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
jsonschema
|
|
pytest-subtests
|
|
pytestCheckHook
|
|
];
|
|
|
|
# Avoid infinite recursion with jsonschema
|
|
doCheck = false;
|
|
|
|
passthru.tests.referencing = self.overridePythonAttrs { doCheck = true; };
|
|
|
|
pythonImportsCheck = [ "referencing" ];
|
|
|
|
meta = with lib; {
|
|
description = "Cross-specification JSON referencing";
|
|
homepage = "https://github.com/python-jsonschema/referencing";
|
|
changelog = "https://github.com/python-jsonschema/referencing/releases/tag/v${version}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
};
|
|
in
|
|
self
|