btrbk: add mainProgram (#356350)
[NixPkgs.git] / pkgs / development / python-modules / smpp-pdu / default.nix
bloba515b53716274b6535c04eb362e1b4e10ab46d8d
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   pytestCheckHook,
6   setuptools,
7 }:
9 buildPythonPackage {
10   pname = "smpp-pdu";
11   version = "unstable-2022-09-02";
12   format = "pyproject";
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   };
22   nativeBuildInputs = [ setuptools ];
24   nativeCheckInputs = [ pytestCheckHook ];
26   pythonImportsCheck = [ "smpp.pdu" ];
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   };