1a04744f74
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
42 lines
807 B
Nix
42 lines
807 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
hatch-fancy-pypi-readme,
|
|
hatch-vcs,
|
|
hatchling,
|
|
numpy,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
version = "3.4.0";
|
|
pname = "opt-einsum";
|
|
pyproject = true;
|
|
|
|
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 ];
|
|
};
|
|
}
|