2c76a4cb41
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
44 lines
821 B
Nix
44 lines
821 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, python
|
|
, six
|
|
, mock
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "smpplib";
|
|
version = "2.2.3";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-UhWpWwU40m8YlgDgmCsx2oKB90U81uKGLFsh4+EAIzE=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
six
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
mock
|
|
pytestCheckHook
|
|
];
|
|
|
|
postInstall = ''
|
|
rm -rf $out/${python.sitePackages}/tests
|
|
'';
|
|
|
|
pythonImportsCheck = [
|
|
"smpplib"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "SMPP library for Python";
|
|
homepage = "https://github.com/python-smpplib/python-smpplib";
|
|
changelog = "https://github.com/python-smpplib/python-smpplib/releases/tag/${version}";
|
|
license = licenses.lgpl3Plus;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|