mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
57 lines
1 KiB
Nix
57 lines
1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
meson-python,
|
|
versioningit,
|
|
pkg-config,
|
|
nix-update-script,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "uarray";
|
|
version = "0.9.5";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Quansight-Labs";
|
|
repo = "uarray";
|
|
tag = version;
|
|
hash = "sha256-Jut/V0/na+dcVpD7buW0DIS+KpA+dGRRb6QpPDt2/hY=";
|
|
};
|
|
|
|
preBuild = ''
|
|
echo "__version__ = '$version'" > src/uarray/_version.py
|
|
'';
|
|
|
|
build-system = [
|
|
meson-python
|
|
versioningit
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|