python3Packages.pymilter: init at 1.0.5
This commit is contained in:
parent
c107fb66da
commit
2fb3bfb178
30
pkgs/development/python-modules/pymilter/default.nix
Normal file
30
pkgs/development/python-modules/pymilter/default.nix
Normal 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;
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user