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