2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
poetry-core,
|
|
|
|
pydantic,
|
|
|
|
requests,
|
|
|
|
pytestCheckHook,
|
|
|
|
pytest-asyncio,
|
|
|
|
setuptools,
|
2023-08-22 20:05:09 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage {
|
2024-04-21 15:54:59 +00:00
|
|
|
pname = "smpp-pdu";
|
2023-08-22 20:05:09 +00:00
|
|
|
version = "unstable-2022-09-02";
|
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
# Upstream was once mozes/smpp.pdu, but it's dead and Python 2 only.
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hologram-io";
|
|
|
|
repo = "smpp.pdu";
|
|
|
|
rev = "20acc840ded958898eeb35ae9a18df9b29bdaaac";
|
|
|
|
hash = "sha256-/icVexc2S8sbJqn4ioeIhYxyDFIENuCfsFhl0uAHa9g=";
|
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools ];
|
2023-08-22 20:05:09 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2023-08-22 20:05:09 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "smpp.pdu" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Library for parsing Protocol Data Units (PDUs) in SMPP protocol";
|
|
|
|
homepage = "https://github.com/hologram-io/smpp.pdu";
|
|
|
|
license = licenses.asl20;
|
2024-06-05 15:53:02 +00:00
|
|
|
maintainers = with maintainers; [
|
|
|
|
flokli
|
|
|
|
janik
|
|
|
|
];
|
2023-08-22 20:05:09 +00:00
|
|
|
};
|
|
|
|
}
|