Files
nixpkgs/pkgs/development/python-modules/opt-einsum/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

45 lines
855 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
hatch-fancy-pypi-readme,
hatch-vcs,
hatchling,
numpy,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
version = "3.4.0";
pname = "opt-einsum";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchPypi {
pname = "opt_einsum";
inherit version;
hash = "sha256-lspy8biG0UgkE0h4NJgZTFd/owqPqsEIWGsU8bpEc6w=";
};
build-system = [
hatch-fancy-pypi-readme
hatch-vcs
hatchling
];
dependencies = [ numpy ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "opt_einsum" ];
meta = {
description = "Optimizing NumPy's einsum function with order optimization and GPU support";
homepage = "https://github.com/dgasmith/opt_einsum";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ teh ];
};
}