depot/third_party/nixpkgs/pkgs/development/python-modules/smpplib/default.nix
Default email a0cb138ada Project import generated by Copybara.
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
2023-02-02 18:25:31 +00:00

42 lines
724 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, python
, six
, mock
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "smpplib";
version = "2.2.1";
src = fetchPypi {
inherit pname version;
sha256 = "c0b01947b47e404f42ccb59e906b6e4eb507963c971d59b44350db0f29c76166";
};
propagatedBuildInputs = [
six
];
nativeCheckInputs = [
mock
pytestCheckHook
];
postInstall = ''
rm -rf $out/${python.sitePackages}/tests
'';
pythonImportsCheck = [
"smpplib"
];
meta = with lib; {
description = "SMPP library for Python";
homepage = "https://github.com/python-smpplib/python-smpplib";
license = licenses.lgpl3Plus;
maintainers = with maintainers; [ globin ];
};
}