blob: 3a653ec5f49abb98925712dd49f8b972da4b7edc (
plain) (
blame)
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
|
{
lib,
stdenv,
buildPythonPackage,
fetchPypi,
rustPlatform,
cargo,
rustc,
libiconv,
}:
buildPythonPackage rec {
pname = "pdoc-pyo3-sample-library";
version = "1.0.11";
pyproject = true;
src = fetchPypi {
pname = "pdoc_pyo3_sample_library";
inherit version;
hash = "sha256-ZGMo7WgymkSDQu8tc4rTfWNsIWO0AlDPG0OzpKRq3oA=";
};
cargoDeps = rustPlatform.fetchCargoTarball {
inherit src;
hash = "sha256-KrEBr998AV/bKcIoq0tX72/QwPD9bQplrS0Zw+JiSMQ=";
};
nativeBuildInputs = [
rustPlatform.cargoSetupHook
rustPlatform.maturinBuildHook
cargo
rustc
];
buildInputs = lib.optionals stdenv.isDarwin [ libiconv ];
pythonImportsCheck = [ "pdoc_pyo3_sample_library" ];
# no tests
doCheck = false;
meta = {
description = "Sample PyO3 library used in pdoc tests";
homepage = "https://github.com/mitmproxy/pdoc-pyo3-sample-library";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.pbsds ];
};
}
|