lol

Merge pull request #154763 from fabaff/pytest-opt-ein

python3Packages.opt-einsum: switch to pytestCheckHook

authored by

Fabian Affolter and committed by
GitHub
2ce75922 813f4197

+24 -10
+24 -10
pkgs/development/python-modules/opt-einsum/default.nix
··· 1 - { buildPythonPackage, fetchPypi, lib, numpy, pytest_4 }: 1 + { lib 2 + , buildPythonPackage 3 + , fetchPypi 4 + , numpy 5 + , pytestCheckHook 6 + , pythonOlder 7 + }: 2 8 3 9 buildPythonPackage rec { 4 10 version = "3.3.0"; 5 - pname = "opt_einsum"; 11 + pname = "opt-einsum"; 12 + format = "setuptools"; 13 + 14 + disabled = pythonOlder "3.6"; 6 15 7 16 src = fetchPypi { 8 - inherit version pname; 9 - sha256 = "0jb5lia0q742d1713jk33vlj41y61sf52j6pgk7pvhxvfxglgxjr"; 17 + pname = "opt_einsum"; 18 + inherit version; 19 + hash = "sha256-WfZHX3e7w33PfNdIUZwOxgci6R5jyhFOaIIcDFSkZUk="; 10 20 }; 11 21 12 - propagatedBuildInputs = [ numpy ]; 22 + propagatedBuildInputs = [ 23 + numpy 24 + ]; 13 25 14 - checkInputs = [ pytest_4 ]; 26 + checkInputs = [ 27 + pytestCheckHook 28 + ]; 15 29 16 - checkPhase = '' 17 - pytest 18 - ''; 30 + pythonImportsCheck = [ 31 + "opt_einsum" 32 + ]; 19 33 20 34 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"; 22 36 homepage = "https://github.com/dgasmith/opt_einsum"; 23 37 license = licenses.mit; 24 38 maintainers = with maintainers; [ teh ];