1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 numpy,
7 pytestCheckHook,
8 hypothesis,
9}:
10
11buildPythonPackage rec {
12 pname = "array-api-strict";
13 version = "2.2";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "data-apis";
18 repo = "array-api-strict";
19 tag = version;
20 hash = "sha256-9WIKN2mekJIOD076946xkNqMlfeTaLuuB9qqAJN8Xwc=";
21 };
22
23 build-system = [ setuptools ];
24
25 dependencies = [ numpy ];
26
27 nativeCheckInputs = [
28 pytestCheckHook
29 hypothesis
30 ];
31
32 pythonImportsCheck = [ "array_api_strict" ];
33
34 disabledTests = [
35 "test_disabled_extensions"
36 "test_environment_variables"
37 ];
38
39 meta = {
40 homepage = "https://data-apis.org/array-api-strict";
41 changelog = "https://github.com/data-apis/array-api-strict/releases/tag/${version}";
42 description = "A strict, minimal implementation of the Python array API";
43 license = lib.licenses.bsd3;
44 maintainers = with lib.maintainers; [ berquist ];
45 };
46}