Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.3 kB · 66 lines
Nix
at gcc-offload
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667{ lib, buildPythonPackage, fetchFromGitHub, hatchling, jupyter, nbconvert, numpy, parameterized, pillow, pytestCheckHook, pythonOlder,}:
buildPythonPackage rec { pname = "einops"; version = "0.8.0"; pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub { owner = "arogozhnikov"; repo = pname; rev = "refs/tags/v${version}"; hash = "sha256-6x9AttvSvgYrHaS5ESKOwyEnXxD2BitYTGtqqSKur+0="; };
nativeBuildInputs = [ hatchling ];
nativeCheckInputs = [ jupyter nbconvert numpy parameterized pillow pytestCheckHook ];
env.EINOPS_TEST_BACKENDS = "numpy";
preCheck = '' export HOME=$(mktemp -d); '';
pythonImportsCheck = [ "einops" ];
disabledTests = [ # Tests are failing as mxnet is not pulled-in # https://github.com/NixOS/nixpkgs/issues/174872 "test_all_notebooks" "test_dl_notebook_with_all_backends" "test_backends_installed" ];
disabledTestPaths = [ "tests/test_layers.py" ];
__darwinAllowLocalNetworking = true;
meta = with lib; { description = "Flexible and powerful tensor operations for readable and reliable code"; homepage = "https://github.com/arogozhnikov/einops"; license = licenses.mit; maintainers = with maintainers; [ yl3dy ]; };}