depot/third_party/nixpkgs/pkgs/development/python-modules/primecountpy/default.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

39 lines
805 B
Nix

{ lib
, fetchPypi
, buildPythonPackage
, primecount
, cython
, cysignals
# Reverse dependency
, sage
}:
buildPythonPackage rec {
pname = "primecountpy";
version = "0.1.0";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "78fe7cc32115f0669a45d7c90faaf39f7ce3939e39e2e7e5f14c17fe4bff0676";
};
buildInputs = [ primecount ];
propagatedBuildInputs = [ cython cysignals ];
# depends on pytest-cython for "pytest --doctest-cython"
doCheck = false;
pythonImportsCheck = [ "primecountpy" ];
passthru.tests = { inherit sage; };
meta = with lib; {
description = "Cython interface for C++ primecount library";
homepage = "https://github.com/dimpase/primecountpy/";
maintainers = teams.sage.members;
license = licenses.gpl3Only;
};
}