python3Packages.pymilter: init at 1.0.5

This commit is contained in:
Yorick van Pelt 2022-10-10 07:51:11 +02:00
parent c107fb66da
commit 2fb3bfb178
No known key found for this signature in database
GPG Key ID: A36E70F9DC014A15
2 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,30 @@
{ lib, python, buildPythonPackage, fetchFromGitHub, libmilter, bsddb3, pydns }:
buildPythonPackage rec {
pname = "pymilter";
version = "1.0.5";
src = fetchFromGitHub {
owner = "sdgathman";
repo = pname;
rev = "${pname}-${version}";
hash = "sha256-gZUWEDVZfDRiOOdG3lpiQldHxm/93l8qYVOHOEpHhzQ=";
};
buildInputs = [ libmilter ];
propagatedBuildInputs = [ bsddb3 pydns ];
preBuild = ''
sed -i 's/import thread/import _thread as thread/' Milter/greylist.py
'';
# requires /etc/resolv.conf
doCheck = false;
meta = with lib; {
homepage = "http://bmsi.com/python/milter.html";
description = "Python bindings for libmilter api";
maintainers = with maintainers; [ yorickvp ];
license = licenses.gpl2;
};
}

View File

@ -8142,6 +8142,8 @@ self: super: with self; {
pymicrobot = callPackage ../development/python-modules/pymicrobot { };
pymilter = callPackage ../development/python-modules/pymilter { };
pymitv = callPackage ../development/python-modules/pymitv { };
pymfy = callPackage ../development/python-modules/pymfy { };