15 buildPythonPackage rec {
20 disabled = pythonOlder "3.7";
22 src = fetchFromGitHub {
23 owner = "arogozhnikov";
25 rev = "refs/tags/v${version}";
26 hash = "sha256-6x9AttvSvgYrHaS5ESKOwyEnXxD2BitYTGtqqSKur+0=";
29 nativeBuildInputs = [ hatchling ];
40 env.EINOPS_TEST_BACKENDS = "numpy";
43 export HOME=$(mktemp -d);
46 pythonImportsCheck = [ "einops" ];
49 # Tests are failing as mxnet is not pulled-in
50 # https://github.com/NixOS/nixpkgs/issues/174872
52 "test_dl_notebook_with_all_backends"
53 "test_backends_installed"
56 disabledTestPaths = [ "tests/test_layers.py" ];
58 __darwinAllowLocalNetworking = true;
61 description = "Flexible and powerful tensor operations for readable and reliable code";
62 homepage = "https://github.com/arogozhnikov/einops";
63 license = licenses.mit;
64 maintainers = with maintainers; [ yl3dy ];