bcb2f287e1
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
48 lines
1,006 B
Nix
48 lines
1,006 B
Nix
{
|
|
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 pname version 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 ];
|
|
};
|
|
}
|