Files
nixpkgs/pkgs/development/python-modules/einops/default.nix
Luna Nova bdd7ef230c python3Packages.einops: disable scripts/ tests due to reported failures
Fixes #418240 python312Packages.einops: (check) notebook.py test failed from timeout
2025-08-25 09:48:29 -07: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 ];
};
}