1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 setuptools,
7}:
8
9buildPythonPackage {
10 pname = "smpp-pdu";
11 version = "unstable-2022-09-02";
12 format = "pyproject";
13
14 # Upstream was once mozes/smpp.pdu, but it's dead and Python 2 only.
15 src = fetchFromGitHub {
16 owner = "hologram-io";
17 repo = "smpp.pdu";
18 rev = "20acc840ded958898eeb35ae9a18df9b29bdaaac";
19 hash = "sha256-/icVexc2S8sbJqn4ioeIhYxyDFIENuCfsFhl0uAHa9g=";
20 };
21
22 nativeBuildInputs = [ setuptools ];
23
24 nativeCheckInputs = [ pytestCheckHook ];
25
26 pythonImportsCheck = [ "smpp.pdu" ];
27
28 meta = with lib; {
29 description = "Library for parsing Protocol Data Units (PDUs) in SMPP protocol";
30 homepage = "https://github.com/hologram-io/smpp.pdu";
31 license = licenses.asl20;
32 maintainers = with maintainers; [ flokli ];
33 };
34}