Merge pull request #240978 from fabaff/rpds-py
python311Packages.rpds-py: init at 0.7.1, python311Packages.referencing: init at 0.29.0
This commit is contained in:
commit
a34d3c15d9
3 changed files with 119 additions and 0 deletions
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 ];
|
||||||
|
};
|
||||||
|
}
|
51
pkgs/development/python-modules/rpds-py/default.nix
Normal file
51
pkgs/development/python-modules/rpds-py/default.nix
Normal file
|
@ -0,0 +1,51 @@
|
||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, cargo
|
||||||
|
, fetchPypi
|
||||||
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
|
, rustc
|
||||||
|
, rustPlatform
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "rpds-py";
|
||||||
|
version = "0.7.1";
|
||||||
|
format = "pyproject";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.8";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
pname = "rpds_py";
|
||||||
|
inherit version;
|
||||||
|
hash = "sha256-2UC1ZE8U5JscbnkCueyKDHWEEJ+/OA+hgRWDGmQZJ8g=";
|
||||||
|
};
|
||||||
|
|
||||||
|
cargoDeps = rustPlatform.fetchCargoTarball {
|
||||||
|
inherit src;
|
||||||
|
name = "${pname}-${version}";
|
||||||
|
hash = "sha256-BAoE0oRQGf5ze/8uAH6gsFP77lPvOvYy8W9iDrqUn3Q=";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
rustPlatform.cargoSetupHook
|
||||||
|
rustPlatform.maturinBuildHook
|
||||||
|
cargo
|
||||||
|
rustc
|
||||||
|
];
|
||||||
|
|
||||||
|
nativeCheckInputs = [
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"rpds"
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Python bindings to Rust's persistent data structures (rpds";
|
||||||
|
homepage = "https://pypi.org/project/rpds-py/";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ fab ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -10625,6 +10625,8 @@ self: super: with self; {
|
||||||
|
|
||||||
reedsolo = callPackage ../development/python-modules/reedsolo { };
|
reedsolo = callPackage ../development/python-modules/reedsolo { };
|
||||||
|
|
||||||
|
referencing = callPackage ../development/python-modules/referencing { };
|
||||||
|
|
||||||
reflink = callPackage ../development/python-modules/reflink { };
|
reflink = callPackage ../development/python-modules/reflink { };
|
||||||
|
|
||||||
regenmaschine = callPackage ../development/python-modules/regenmaschine { };
|
regenmaschine = callPackage ../development/python-modules/regenmaschine { };
|
||||||
|
@ -10889,6 +10891,8 @@ self: super: with self; {
|
||||||
|
|
||||||
rpdb = callPackage ../development/python-modules/rpdb { };
|
rpdb = callPackage ../development/python-modules/rpdb { };
|
||||||
|
|
||||||
|
rpds-py = callPackage ../development/python-modules/rpds-py { };
|
||||||
|
|
||||||
rpi-bad-power = callPackage ../development/python-modules/rpi-bad-power { };
|
rpi-bad-power = callPackage ../development/python-modules/rpi-bad-power { };
|
||||||
|
|
||||||
rpi-gpio = callPackage ../development/python-modules/rpi-gpio { };
|
rpi-gpio = callPackage ../development/python-modules/rpi-gpio { };
|
||||||
|
|
Loading…
Reference in a new issue