Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 828 B view raw
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.3"; 13 format = "setuptools"; 14 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "sha256-UhWpWwU40m8YlgDgmCsx2oKB90U81uKGLFsh4+EAIzE="; 18 }; 19 20 propagatedBuildInputs = [ 21 six 22 ]; 23 24 nativeCheckInputs = [ 25 mock 26 pytestCheckHook 27 ]; 28 29 postInstall = '' 30 rm -rf $out/${python.sitePackages}/tests 31 ''; 32 33 pythonImportsCheck = [ 34 "smpplib" 35 ]; 36 37 meta = with lib; { 38 description = "SMPP library for Python"; 39 homepage = "https://github.com/python-smpplib/python-smpplib"; 40 changelog = "https://github.com/python-smpplib/python-smpplib/releases/tag/${version}"; 41 license = licenses.lgpl3Plus; 42 maintainers = with maintainers; [ globin ]; 43 }; 44}