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