git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #154763 from fabaff/pytest-opt-ein

python3Packages.opt-einsum: switch to pytestCheckHook

commit2ce7592267cdfb36cef3f1de9570cbf1e53ddd3a authorFabian Affolter <fabian@affolter-engineering.ch> dateWed 12 Jan 2022, 16:17 (5 years ago) parent813f419b7c632d
1 file changed+24−10
pkgs/development/python-modules/opt-einsum/default.nix+24−10
pkgs/development/python-modules/opt-einsum/default.nix+24−10
@@ -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 ];