9c6ee729d6
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
51 lines
979 B
Nix
51 lines
979 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, cargo
|
|
, fetchPypi
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, rustc
|
|
, rustPlatform
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "rpds-py";
|
|
version = "0.8.10";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchPypi {
|
|
pname = "rpds_py";
|
|
inherit version;
|
|
hash = "sha256-E+ZDzorVAqAmM5c2L7iHWUtJz4S/UY1gOMFvI18rzqQ=";
|
|
};
|
|
|
|
cargoDeps = rustPlatform.fetchCargoTarball {
|
|
inherit src;
|
|
name = "${pname}-${version}";
|
|
hash = "sha256-D4pbEipVn1r5rrX+wDXi97nDZJyBlkdqhmbJSgQGTLU=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|