mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 12:53:05 +00:00
64 lines
1.0 KiB
Nix
64 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
setuptools-scm,
|
|
matchpy,
|
|
numpy,
|
|
astunparse,
|
|
typing-extensions,
|
|
pytest7CheckHook,
|
|
pytest-cov,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "uarray";
|
|
version = "0.8.8";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Quansight-Labs";
|
|
repo = pname;
|
|
rev = version;
|
|
hash = "sha256-wTKqOw64b+/kdZpSYLwCJATOuo807BWCtVHB4pH58fY=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
setuptools-scm
|
|
];
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
astunparse
|
|
matchpy
|
|
numpy
|
|
typing-extensions
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytest7CheckHook
|
|
pytest-cov
|
|
];
|
|
|
|
# Tests must be run from outside the source directory
|
|
preCheck = ''
|
|
cd $TMP
|
|
'';
|
|
|
|
pytestFlagsArray = [
|
|
"--pyargs"
|
|
"uarray"
|
|
];
|
|
|
|
pythonImportsCheck = [ "uarray" ];
|
|
|
|
meta = with lib; {
|
|
description = "Universal array library";
|
|
homepage = "https://github.com/Quansight-Labs/uarray";
|
|
license = licenses.bsd0;
|
|
maintainers = [ ];
|
|
};
|
|
}
|