Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

64 lines
1.3 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
hatchling,
jupyter,
nbconvert,
numpy,
parameterized,
pillow,
pytestCheckHook,
writableTmpDirAsHomeHook,
pythonOlder,
torch,
}:
buildPythonPackage rec {
pname = "einops";
version = "0.8.1";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "arogozhnikov";
repo = "einops";
tag = "v${version}";
hash = "sha256-J9m5LMOleHf2UziUbOtwf+DFpu/wBDcAyHUor4kqrR8=";
};
build-system = [ hatchling ];
nativeCheckInputs = [
writableTmpDirAsHomeHook
jupyter
nbconvert
numpy
parameterized
pillow
pytestCheckHook
torch
];
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 = with lib; {
changelog = "https://github.com/arogozhnikov/einops/releases/tag/${src.tag}";
description = "Flexible and powerful tensor operations for readable and reliable code";
homepage = "https://github.com/arogozhnikov/einops";
license = licenses.mit;
maintainers = with maintainers; [ yl3dy ];
};
}