Merge pull request #333919 from berquist/add-python-array-api-strict

python3Packages.array-api-strict: init at 2.0.1
This commit is contained in:
Pol Dellaiera 2024-08-11 20:09:11 +02:00 committed by GitHub
commit 801c433187
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 51 additions and 0 deletions

View File

@ -0,0 +1,49 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
numpy,
pytestCheckHook,
hypothesis,
nix-update-script,
}:
buildPythonPackage rec {
pname = "array-api-strict";
version = "2.0.1";
pyproject = true;
src = fetchFromGitHub {
owner = "data-apis";
repo = "array-api-strict";
rev = "refs/tags/${version}";
hash = "sha256-sGuMhtxhXXFD6KAiujuWdDe2+gKYN3ijiXvi07a2AgA=";
};
build-system = [ setuptools ];
dependencies = [ numpy ];
nativeCheckInputs = [
pytestCheckHook
hypothesis
];
pythonImportsCheck = [ "array_api_strict" ];
disabledTests = [
"test_disabled_extensions"
"test_environment_variables"
];
passthru.updateScript = nix-update-script { };
meta = with lib; {
homepage = "https://data-apis.org/array-api-strict";
changelog = "https://github.com/data-apis/array-api-strict/releases/tag/${version}";
description = "A strict, minimal implementation of the Python array API";
license = licenses.bsd3;
maintainers = [ maintainers.berquist ];
};
}

View File

@ -773,6 +773,8 @@ self: super: with self; {
arnparse = callPackage ../development/python-modules/arnparse { };
array-api-strict = callPackage ../development/python-modules/array-api-strict { };
array-record = callPackage ../development/python-modules/array-record { };
arrayqueues = callPackage ../development/python-modules/arrayqueues { };