summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Affolter <fabian@affolter-engineering.ch>2022-01-12 16:17:04 +0100
committerGitHub <noreply@github.com>2022-01-12 16:17:04 +0100
commit2ce7592267cdfb36cef3f1de9570cbf1e53ddd3a (patch)
treee5244dc57c1169cd00f8c7434208ce2d9442a05e
parentMerge pull request #154663 from fabaff/bump-identify (diff)
parentpython3Packages.opt-einsum: switch to pytestCheckHook (diff)
downloadnixpkgs-2ce7592267cdfb36cef3f1de9570cbf1e53ddd3a.tar.gz
Merge pull request #154763 from fabaff/pytest-opt-ein
python3Packages.opt-einsum: switch to pytestCheckHook
-rw-r--r--pkgs/development/python-modules/opt-einsum/default.nix34
1 files changed, 24 insertions, 10 deletions
diff --git a/pkgs/development/python-modules/opt-einsum/default.nix b/pkgs/development/python-modules/opt-einsum/default.nix
index 2ded1dfc1961..6e4eabeb68ab 100644
--- a/pkgs/development/python-modules/opt-einsum/default.nix
+++ b/pkgs/development/python-modules/opt-einsum/default.nix
@@ -1,24 +1,38 @@
-{ buildPythonPackage, fetchPypi, lib, numpy, pytest_4 }:
+{ lib
+, buildPythonPackage
+, fetchPypi
+, numpy
+, pytestCheckHook
+, pythonOlder
+}:
buildPythonPackage rec {
version = "3.3.0";
- pname = "opt_einsum";
+ pname = "opt-einsum";
+ format = "setuptools";
+
+ disabled = pythonOlder "3.6";
src = fetchPypi {
- inherit version pname;
- sha256 = "0jb5lia0q742d1713jk33vlj41y61sf52j6pgk7pvhxvfxglgxjr";
+ pname = "opt_einsum";
+ inherit version;
+ hash = "sha256-WfZHX3e7w33PfNdIUZwOxgci6R5jyhFOaIIcDFSkZUk=";
};
- propagatedBuildInputs = [ numpy ];
+ propagatedBuildInputs = [
+ numpy
+ ];
- checkInputs = [ pytest_4 ];
+ checkInputs = [
+ pytestCheckHook
+ ];
- checkPhase = ''
- pytest
- '';
+ pythonImportsCheck = [
+ "opt_einsum"
+ ];
meta = with lib; {
- description = "Optimizing NumPy's einsum function with order optimization and GPU support.";
+ description = "Optimizing NumPy's einsum function with order optimization and GPU support";
homepage = "https://github.com/dgasmith/opt_einsum";
license = licenses.mit;
maintainers = with maintainers; [ teh ];