python311Packages.referencing: init at 0.29.0
This commit is contained in:
parent
c58d788284
commit
5e24dfe3ff
64
pkgs/development/python-modules/referencing/default.nix
Normal file
64
pkgs/development/python-modules/referencing/default.nix
Normal file
@ -0,0 +1,64 @@
|
||||
{ lib
|
||||
, attrs
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, hatch-vcs
|
||||
, hatchling
|
||||
, jsonschema
|
||||
, pytest-subtests
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, rpds-py
|
||||
, setuptools-scm
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "referencing";
|
||||
version = "0.29.0";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "python-jsonschema";
|
||||
repo = "referencing";
|
||||
rev = "refs/tags/v${version}";
|
||||
fetchSubmodules = true;
|
||||
hash = "sha256-+wPNPYu2/0gBmHFJ8aAeZ3dFDC7uFV6Ww3RAbri26Mc=";
|
||||
};
|
||||
|
||||
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
||||
|
||||
postPatch = ''
|
||||
sed -i "/Topic/d" pyproject.toml
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
hatch-vcs
|
||||
hatchling
|
||||
setuptools-scm
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
attrs
|
||||
rpds-py
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
jsonschema
|
||||
pytest-subtests
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"referencing"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Cross-specification JSON referencing";
|
||||
homepage = "https://github.com/python-jsonschema/referencing";
|
||||
changelog = "https://github.com/python-jsonschema/referencing/blob/${version}/CHANGELOG.rst";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
@ -10619,6 +10619,8 @@ self: super: with self; {
|
||||
|
||||
reedsolo = callPackage ../development/python-modules/reedsolo { };
|
||||
|
||||
referencing = callPackage ../development/python-modules/referencing { };
|
||||
|
||||
reflink = callPackage ../development/python-modules/reflink { };
|
||||
|
||||
regenmaschine = callPackage ../development/python-modules/regenmaschine { };
|
||||
|
Loading…
Reference in New Issue
Block a user