blob: 0fabcf0d2367d79913eb054aba2522eeb3f226f4 (
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
54
55
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
setuptools-scm,
numpy,
pytestCheckHook,
hypothesis,
}:
buildPythonPackage rec {
pname = "array-api-strict";
version = "2.4.1";
pyproject = true;
src = fetchFromGitHub {
owner = "data-apis";
repo = "array-api-strict";
tag = version;
hash = "sha256-m0uWaeUwHsWyAOxS7nxY8c+HWUhz+mOKNE4M0DsiClI=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "setuptools >= 61.0,<=75" "setuptools"
'';
build-system = [
setuptools
setuptools-scm
];
dependencies = [ numpy ];
nativeCheckInputs = [
pytestCheckHook
hypothesis
];
pythonImportsCheck = [ "array_api_strict" ];
disabledTests = [
"test_disabled_extensions"
"test_environment_variables"
];
meta = {
homepage = "https://data-apis.org/array-api-strict";
changelog = "https://github.com/data-apis/array-api-strict/releases/tag/${src.tag}";
description = "Strict, minimal implementation of the Python array API";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ berquist ];
};
}
|