Files
nixpkgs/pkgs/development/python-modules/array-api-strict/default.nix
2024-08-11 10:06:42 -04:00

50 lines
1.0 KiB
Nix

{
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 ];
};
}