Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09 659 B view raw
1{ buildPythonPackage, fetchPypi, lib, python, six, tox, mock, pytest }: 2 3buildPythonPackage rec { 4 pname = "smpplib"; 5 version = "2.1.0"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "0jzxlfwf0861ilh4xyd70hmkdbvdki52aalglm1bnpxkg6i3jhfz"; 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}