Merge pull request #201395 from SuperSandro2000/smpplib

python310Packages.smpplib: use pytestCheckHook, remove tox requirement

authored by Fabian Affolter and committed by GitHub 42072df4 c0f6848a

+20 -7
+20 -7
pkgs/development/python-modules/smpplib/default.nix
··· 1 - { buildPythonPackage, fetchPypi, lib, python, six, tox, mock, pytest }: 2 3 buildPythonPackage rec { 4 pname = "smpplib"; ··· 9 sha256 = "c0b01947b47e404f42ccb59e906b6e4eb507963c971d59b44350db0f29c76166"; 10 }; 11 12 - propagatedBuildInputs = [ six ]; 13 - checkInputs = [ tox mock pytest ]; 14 15 - checkPhase = '' 16 - pytest 17 - ''; 18 19 postInstall = '' 20 rm -rf $out/${python.sitePackages}/tests 21 ''; 22 23 meta = with lib; { 24 description = "SMPP library for Python"; 25 homepage = "https://github.com/python-smpplib/python-smpplib"; 26 license = licenses.lgpl3Plus; 27 - maintainers = [ maintainers.globin ]; 28 }; 29 }
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchPypi 4 + , python 5 + , six 6 + , mock 7 + , pytestCheckHook 8 + }: 9 10 buildPythonPackage rec { 11 pname = "smpplib"; ··· 16 sha256 = "c0b01947b47e404f42ccb59e906b6e4eb507963c971d59b44350db0f29c76166"; 17 }; 18 19 + propagatedBuildInputs = [ 20 + six 21 + ]; 22 23 + checkInputs = [ 24 + mock 25 + pytestCheckHook 26 + ]; 27 28 postInstall = '' 29 rm -rf $out/${python.sitePackages}/tests 30 ''; 31 32 + pythonImportsCheck = [ 33 + "smpplib" 34 + ]; 35 + 36 meta = with lib; { 37 description = "SMPP library for Python"; 38 homepage = "https://github.com/python-smpplib/python-smpplib"; 39 license = licenses.lgpl3Plus; 40 + maintainers = with maintainers; [ globin ]; 41 }; 42 }