blob: 08b2269fdf02ea610d7e7c498b6723b8820d8ab8 (
plain)
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
49
50
51
52
53
|
{
lib,
fetchPypi,
buildPythonPackage,
meson-python,
cython,
pkg-config,
primecount,
cysignals,
# Reverse dependency
sage,
}:
buildPythonPackage rec {
pname = "primecountpy";
version = "0.2.1";
pyproject = true;
src = fetchPypi {
inherit pname version;
sha256 = "sha256-iIcGq2XMCJ+5g95GOTYN3ccouqTZh3p62LEW9kVlCzk=";
};
build-system = [
meson-python
cython
];
nativeBuildInputs = [ pkg-config ];
buildInputs = [ primecount ];
propagatedBuildInputs = [
cysignals
];
# depends on pytest-cython for "pytest --doctest-cython"
doCheck = false;
pythonImportsCheck = [ "primecountpy" ];
passthru.tests = {
inherit sage;
};
meta = {
description = "Cython interface for C++ primecount library";
homepage = "https://github.com/dimpase/primecountpy/";
teams = [ lib.teams.sage ];
license = lib.licenses.gpl3Only;
};
}
|