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
54
55
56
57
58
59
60
61
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
build,
cython,
findutils,
pip,
pytestCheckHook,
pythonOlder,
setuptools-scm,
setuptools,
tomli,
wheel,
}:
buildPythonPackage rec {
pname = "extension-helpers";
version = "1.4.0";
pyproject = true;
src = fetchFromGitHub {
owner = "astropy";
repo = "extension-helpers";
tag = "v${version}";
hash = "sha256-coSgaPoz93CqJRb65xYs1sNOwoGhcxWGJF7Jc9N2W1I=";
};
build-system = [
setuptools
setuptools-scm
];
dependencies = [ setuptools ] ++ lib.optionals (pythonOlder "3.11") [ tomli ];
nativeCheckInputs = [
build
cython
findutils
pip
pytestCheckHook
wheel
];
pythonImportsCheck = [ "extension_helpers" ];
enabledTestPaths = [ "extension_helpers/tests" ];
disabledTests = [
# https://github.com/astropy/extension-helpers/issues/43
"test_write_if_different"
];
meta = {
description = "Helpers to assist with building Python packages with compiled C/Cython extensions";
homepage = "https://github.com/astropy/extension-helpers";
changelog = "https://github.com/astropy/extension-helpers/blob/${src.tag}/CHANGES.md";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ fab ];
};
}
|