Skip to content

Commit

Permalink
python3Packages.pdoc-pyo3-sample-library: init at 1.0.11
Browse files Browse the repository at this point in the history
  • Loading branch information
pbsds committed Dec 20, 2023
1 parent 0a2b91c commit 44e54cf
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{ lib
, buildPythonPackage
, fetchPypi
, rustPlatform
, cargo
, rustc
}:

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

pythonImportsCheck = [ "pdoc_pyo3_sample_library" ];

# no tests
doCheck = false;

meta = {
description = "A sample PyO3 library used in pdoc tests";
homepage = "https://github.com/mitmproxy/pdoc-pyo3-sample-library";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.pbsds ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9028,6 +9028,8 @@ self: super: with self; {

pdoc = callPackage ../development/python-modules/pdoc { };

pdoc-pyo3-sample-library = callPackage ../development/python-modules/pdoc-pyo3-sample-library { };

pdoc3 = callPackage ../development/python-modules/pdoc3 { };

peaqevcore = callPackage ../development/python-modules/peaqevcore { };
Expand Down

0 comments on commit 44e54cf

Please sign in to comment.