nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 29 lines 671 B view raw
1{ buildPythonPackage, fetchPypi, lib, python, six, tox, mock, pytest }: 2 3buildPythonPackage rec { 4 pname = "smpplib"; 5 version = "2.2.1"; 6 7 src = fetchPypi { 8 inherit pname version; 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}