1{ lib 2, buildPythonPackage 3, fetchPypi 4, python 5, six 6, mock 7, pytestCheckHook 8}: 9 10buildPythonPackage rec { 11 pname = "smpplib"; 12 version = "2.2.1"; 13 14 src = fetchPypi { 15 inherit pname version; 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}