2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
setuptools,
|
|
|
|
setuptools-scm,
|
|
|
|
matchpy,
|
|
|
|
numpy,
|
|
|
|
astunparse,
|
|
|
|
typing-extensions,
|
|
|
|
pytest7CheckHook,
|
|
|
|
pytest-cov,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "uarray";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.8.8";
|
|
|
|
pyproject = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Quansight-Labs";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-wTKqOw64b+/kdZpSYLwCJATOuo807BWCtVHB4pH58fY=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [
|
2024-04-21 15:54:59 +00:00
|
|
|
setuptools
|
2024-06-05 15:53:02 +00:00
|
|
|
setuptools-scm
|
2024-04-21 15:54:59 +00:00
|
|
|
];
|
2024-06-05 15:53:02 +00:00
|
|
|
build-system = [ setuptools ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
dependencies = [
|
|
|
|
astunparse
|
|
|
|
matchpy
|
|
|
|
numpy
|
|
|
|
typing-extensions
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
pytest7CheckHook
|
|
|
|
pytest-cov
|
|
|
|
];
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
# Tests must be run from outside the source directory
|
|
|
|
preCheck = ''
|
|
|
|
cd $TMP
|
|
|
|
'';
|
2024-04-21 15:54:59 +00:00
|
|
|
|
|
|
|
pytestFlagsArray = [
|
|
|
|
"--pyargs"
|
|
|
|
"uarray"
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
pythonImportsCheck = [ "uarray" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Universal array library";
|
|
|
|
homepage = "https://github.com/Quansight-Labs/uarray";
|
|
|
|
license = licenses.bsd0;
|
2023-08-04 22:07:22 +00:00
|
|
|
maintainers = [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|