2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2021-02-05 17:12:51 +00:00
|
|
|
, fetchFromGitHub
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchpatch
|
2024-04-21 15:54:59 +00:00
|
|
|
, setuptools
|
|
|
|
, setuptools-scm
|
2020-04-24 23:36:52 +00:00
|
|
|
, matchpy
|
|
|
|
, numpy
|
|
|
|
, astunparse
|
|
|
|
, typing-extensions
|
2024-04-21 15:54:59 +00:00
|
|
|
, pytest7CheckHook
|
2021-07-24 12:14:16 +00:00
|
|
|
, 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-04-21 15:54:59 +00:00
|
|
|
nativeBuildInputs = [ setuptools setuptools-scm ];
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|