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