depot/third_party/nixpkgs/pkgs/development/python-modules/smpp-pdu/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

41 lines
914 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
pydantic,
requests,
pytestCheckHook,
pytest-asyncio,
setuptools,
}:
buildPythonPackage {
pname = "smpp-pdu";
version = "unstable-2022-09-02";
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" ];
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
janik
];
};
}