Files
Sandro Jäckel 40529d79a5 python3Packages.einops: remove unused test dependencies
We are not executing juypter notebook playbooks (see comment at disabledTestPaths), so we don't need those
2026-10-07 18:36:51 +02:00

56 lines
1.2 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
hatchling,
# tests
numpy,
pytestCheckHook,
writableTmpDirAsHomeHook,
}:
buildPythonPackage (finalAttrs: {
pname = "einops";
version = "0.8.2";
pyproject = true;
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "arogozhnikov";
repo = "einops";
tag = "v${finalAttrs.version}";
hash = "sha256-d5Vbtkw/MChS2j2IC6j97wfVoKWZT9mU4OeXyEjm6ys=";
};
build-system = [ hatchling ];
nativeCheckInputs = [
numpy
pytestCheckHook
writableTmpDirAsHomeHook
];
env.EINOPS_TEST_BACKENDS = "numpy";
pythonImportsCheck = [ "einops" ];
disabledTestPaths = [
# skip folder with notebook samples that depend on large packages
# or accelerator access and have been unreliable
"scripts/"
];
__darwinAllowLocalNetworking = true;
meta = {
description = "Flexible and powerful tensor operations for readable and reliable code";
homepage = "https://github.com/arogozhnikov/einops";
changelog = "https://github.com/arogozhnikov/einops/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ yl3dy ];
};
})