blob: 6a44c859e5f726c2c43b660a63d680c266860188 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
{
stdenv,
lib,
buildPythonPackage,
cargo,
fetchPypi,
pytestCheckHook,
rustc,
rustPlatform,
libiconv,
}:
buildPythonPackage rec {
pname = "rpds-py";
version = "0.28.0";
pyproject = true;
src = fetchPypi {
pname = "rpds_py";
inherit version;
hash = "sha256-q9TfIEhaCYPiyjNKIWJJthhtbjwWJ+EGZRlD29t5Guo=";
};
cargoDeps = rustPlatform.fetchCargoVendor {
inherit pname version src;
hash = "sha256-mhFAV3KTVIUG/hU524cyeLv3sELv8wMtx820kPWeftE=";
};
nativeBuildInputs = [
rustPlatform.cargoSetupHook
rustPlatform.maturinBuildHook
cargo
rustc
];
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ libiconv ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "rpds" ];
meta = {
changelog = "https://github.com/crate-py/rpds/releases/tag/v${version}";
description = "Python bindings to Rust's persistent data structures";
homepage = "https://github.com/crate-py/rpds";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}
|