Something went wrong. Try again.
lol
Something went wrong. Try again.
1.3 kB · 60 lines
Nix
at master
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061{ 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 ];
pytestFlags = [ # NumPy warning suppression and assertion utilities are deprecated. "-Wignore::DeprecationWarning" ];
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 ]; };}