2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
python,
|
|
|
|
six,
|
|
|
|
mock,
|
|
|
|
pytestCheckHook,
|
2022-11-21 17:40:18 +00:00
|
|
|
}:
|
2020-05-15 21:57:56 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "smpplib";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "2.2.3";
|
2023-03-24 00:07:29 +00:00
|
|
|
format = "setuptools";
|
2020-05-15 21:57:56 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-UhWpWwU40m8YlgDgmCsx2oKB90U81uKGLFsh4+EAIzE=";
|
2020-05-15 21:57:56 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [ six ];
|
2020-05-15 21:57:56 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-11-21 17:40:18 +00:00
|
|
|
mock
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2020-05-15 21:57:56 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
rm -rf $out/${python.sitePackages}/tests
|
|
|
|
'';
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "smpplib" ];
|
2022-11-21 17:40:18 +00:00
|
|
|
|
2020-05-15 21:57:56 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "SMPP library for Python";
|
|
|
|
homepage = "https://github.com/python-smpplib/python-smpplib";
|
2023-03-24 00:07:29 +00:00
|
|
|
changelog = "https://github.com/python-smpplib/python-smpplib/releases/tag/${version}";
|
2020-05-15 21:57:56 +00:00
|
|
|
license = licenses.lgpl3Plus;
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2020-05-15 21:57:56 +00:00
|
|
|
};
|
|
|
|
}
|