Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, fetchPypi 3, buildPythonPackage 4, primecount 5, cython 6, cysignals 7}: 8 9buildPythonPackage rec { 10 pname = "primecountpy"; 11 version = "0.1.0"; 12 13 src = fetchPypi { 14 inherit pname version; 15 sha256 = "78fe7cc32115f0669a45d7c90faaf39f7ce3939e39e2e7e5f14c17fe4bff0676"; 16 }; 17 18 buildInputs = [ primecount ]; 19 20 propagatedBuildInputs = [ cython cysignals ]; 21 22 # depends on pytest-cython for "pytest --doctest-cython" 23 doCheck = false; 24 25 pythonImportsCheck = [ "primecountpy" ]; 26 27 meta = with lib; { 28 description = "Cython interface for C++ primecount library"; 29 homepage = "https://github.com/dimpase/primecountpy/"; 30 maintainers = teams.sage.members; 31 license = licenses.gpl3Only; 32 }; 33}