python311Packages.rpds-py: init at 0.7.1

This commit is contained in:
Fabian Affolter 2023-07-01 21:13:42 +02:00
parent 931b8a4979
commit c58d788284
2 changed files with 53 additions and 0 deletions

View 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 ];
};
}

View file

@ -10883,6 +10883,8 @@ self: super: with self; {
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-gpio = callPackage ../development/python-modules/rpi-gpio { };