Files
nixpkgs/pkgs/development/python-modules/smpp-pdu/default.nix
Michael Daniels 88e4d5754e python3Packages.smpp-pdu: standardize version name, add updateScript
Prevents spurious robot PRs.

No, this isn't a downgrade, just a timezone thing.
2025-09-20 22:09:05 -04:00

40 lines
952 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
nix-update-script,
pytestCheckHook,
setuptools,
}:
buildPythonPackage {
pname = "smpp-pdu";
version = "0.3-unstable-2022-09-01";
format = "pyproject";
# Upstream was once mozes/smpp.pdu, but it's dead and Python 2 only.
src = fetchFromGitHub {
owner = "hologram-io";
repo = "smpp.pdu";
rev = "20acc840ded958898eeb35ae9a18df9b29bdaaac";
hash = "sha256-/icVexc2S8sbJqn4ioeIhYxyDFIENuCfsFhl0uAHa9g=";
};
nativeBuildInputs = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "smpp.pdu" ];
passthru.updateScript = nix-update-script {
extraArgs = [ "--version=branch" ];
};
meta = with lib; {
description = "Library for parsing Protocol Data Units (PDUs) in SMPP protocol";
homepage = "https://github.com/hologram-io/smpp.pdu";
license = licenses.asl20;
maintainers = with maintainers; [ flokli ];
};
}