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