mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
python3Packages.einops: 0.8.1 -> 0.8.2 (#525257)
This commit is contained in:
commit
d5d8cdae1e
1 changed files with 13 additions and 8 deletions
|
|
@ -2,33 +2,37 @@
|
|||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
|
||||
# build-system
|
||||
hatchling,
|
||||
|
||||
# tests
|
||||
jupyter,
|
||||
nbconvert,
|
||||
numpy,
|
||||
parameterized,
|
||||
pillow,
|
||||
pytestCheckHook,
|
||||
writableTmpDirAsHomeHook,
|
||||
torch,
|
||||
writableTmpDirAsHomeHook,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "einops";
|
||||
version = "0.8.1";
|
||||
version = "0.8.2";
|
||||
pyproject = true;
|
||||
__structuredAttrs = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "arogozhnikov";
|
||||
repo = "einops";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-J9m5LMOleHf2UziUbOtwf+DFpu/wBDcAyHUor4kqrR8=";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-d5Vbtkw/MChS2j2IC6j97wfVoKWZT9mU4OeXyEjm6ys=";
|
||||
};
|
||||
|
||||
build-system = [ hatchling ];
|
||||
|
||||
nativeCheckInputs = [
|
||||
writableTmpDirAsHomeHook
|
||||
jupyter
|
||||
nbconvert
|
||||
numpy
|
||||
|
|
@ -36,6 +40,7 @@ buildPythonPackage rec {
|
|||
pillow
|
||||
pytestCheckHook
|
||||
torch
|
||||
writableTmpDirAsHomeHook
|
||||
];
|
||||
|
||||
env.EINOPS_TEST_BACKENDS = "numpy";
|
||||
|
|
@ -51,10 +56,10 @@ buildPythonPackage rec {
|
|||
__darwinAllowLocalNetworking = true;
|
||||
|
||||
meta = {
|
||||
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";
|
||||
changelog = "https://github.com/arogozhnikov/einops/releases/tag/${finalAttrs.src.tag}";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ yl3dy ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue