@@ -1,24 +1,38 @@
1−{ buildPythonPackage, fetchPypi, lib, numpy, pytest_4 }:
1+{ lib
2+, buildPythonPackage
3+, fetchPypi
4+, numpy
5+, pytestCheckHook
6+, pythonOlder
7+}:
28
39buildPythonPackage rec {
410 version = "3.3.0";
5− pname = "opt_einsum";
11+ pname = "opt-einsum";
12+ format = "setuptools";
13+
14+ disabled = pythonOlder "3.6";
615
716 src = fetchPypi {
8− inherit version pname;
9− sha256 = "0jb5lia0q742d1713jk33vlj41y61sf52j6pgk7pvhxvfxglgxjr";
17+ pname = "opt_einsum";
18+ inherit version;
19+ hash = "sha256-WfZHX3e7w33PfNdIUZwOxgci6R5jyhFOaIIcDFSkZUk=";
1020 };
1121
12− propagatedBuildInputs = [ numpy ];
22+ propagatedBuildInputs = [
23+ numpy
24+ ];
1325
14− checkInputs = [ pytest_4 ];
26+ checkInputs = [
27+ pytestCheckHook
28+ ];
1529
16− checkPhase = ''
17− pytest
18− '';
30+ pythonImportsCheck = [
31+ "opt_einsum"
32+ ];
1933
2034 meta = with lib; {
21− description = "Optimizing NumPy's einsum function with order optimization and GPU support.";
35+ description = "Optimizing NumPy's einsum function with order optimization and GPU support";
2236 homepage = "https://github.com/dgasmith/opt_einsum";
2337 license = licenses.mit;
2438 maintainers = with maintainers; [ teh ];