2022-11-21 17:40:18 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, python
|
|
|
|
, six
|
|
|
|
, mock
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
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;
|
2023-05-24 13:37:59 +00:00
|
|
|
sha256 = "sha256-UhWpWwU40m8YlgDgmCsx2oKB90U81uKGLFsh4+EAIzE=";
|
2020-05-15 21:57:56 +00:00
|
|
|
};
|
|
|
|
|
2022-11-21 17:40:18 +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
|
|
|
|
'';
|
|
|
|
|
2022-11-21 17:40:18 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"smpplib"
|
|
|
|
];
|
|
|
|
|
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;
|
2023-11-16 04:20:00 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-05-15 21:57:56 +00:00
|
|
|
};
|
|
|
|
}
|