mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-13 19:43:02 +08:00
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
75 lines
1.3 KiB
Nix
75 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
scikit-build-core,
|
|
setuptools,
|
|
setuptools-scm,
|
|
cmake,
|
|
ninja,
|
|
matchpy,
|
|
numpy,
|
|
astunparse,
|
|
typing-extensions,
|
|
nix-update-script,
|
|
pytestCheckHook,
|
|
pytest-cov-stub,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "uarray";
|
|
version = "0.9.3";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Quansight-Labs";
|
|
repo = "uarray";
|
|
tag = version;
|
|
hash = "sha256-Nog7jvRG/EFf3n3W2DWC7UML5NyrlaaS0ECis5rtCSk=";
|
|
};
|
|
|
|
build-system = [
|
|
scikit-build-core
|
|
setuptools
|
|
setuptools-scm
|
|
cmake
|
|
ninja
|
|
];
|
|
|
|
dontUseCmakeConfigure = true;
|
|
|
|
dependencies = [
|
|
astunparse
|
|
matchpy
|
|
numpy
|
|
typing-extensions
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
pytest-cov-stub
|
|
];
|
|
|
|
# Tests must be run from outside the source directory
|
|
preCheck = ''
|
|
cd $TMP
|
|
'';
|
|
|
|
pytestFlags = [
|
|
"--pyargs"
|
|
"uarray"
|
|
];
|
|
|
|
pythonImportsCheck = [ "uarray" ];
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = {
|
|
description = "Universal array library";
|
|
homepage = "https://github.com/Quansight-Labs/uarray";
|
|
changelog = "https://github.com/Quansight-Labs/uarray/releases/tag/${src.tag}";
|
|
license = lib.licenses.bsd0;
|
|
maintainers = [ lib.maintainers.pbsds ];
|
|
};
|
|
}
|