0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-19 08:31:01 +03:00
nixpkgs/pkgs/development/python-modules/array-api-strict/default.nix
Eric Berquist 8525a69076
python3Packages.array-api-strict: refactor
- remove meta with lib (https://github.com/NixOS/nixpkgs/issues/208242)
- use with lib.maintainers (https://github.com/NixOS/nixpkgs/issues/331085)
- remove unnecessary trivial nix-update-script for Python packages
2024-08-22 09:42:32 -04:00

46 lines
990 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
numpy,
pytestCheckHook,
hypothesis,
}:
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"
];
meta = {
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 = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ berquist ];
};
}