pymilter: 1.0.5 -> 1.0.6; replace bsddb3 with berkleydb
This commit is contained in:
parent
420c9a60c0
commit
ba901e9263
@ -1,42 +1,37 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
python,
|
|
||||||
buildPythonPackage,
|
buildPythonPackage,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
fetchpatch,
|
|
||||||
libmilter,
|
libmilter,
|
||||||
bsddb3,
|
berkeleydb,
|
||||||
pydns,
|
pydns,
|
||||||
iana-etc,
|
iana-etc,
|
||||||
libredirect,
|
libredirect,
|
||||||
pyasyncore,
|
pyasyncore,
|
||||||
|
setuptools,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "pymilter";
|
pname = "pymilter";
|
||||||
version = "1.0.5";
|
version = "1.0.6";
|
||||||
format = "setuptools";
|
pyproject = true;
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "sdgathman";
|
owner = "sdgathman";
|
||||||
repo = pname;
|
repo = "pymilter";
|
||||||
rev = "${pname}-${version}";
|
rev = "refs/tags/pymilter-${version}";
|
||||||
hash = "sha256-gZUWEDVZfDRiOOdG3lpiQldHxm/93l8qYVOHOEpHhzQ=";
|
hash = "sha256-plaWXwDAIsVzEtrabZuZj7T4WNfz2ntQHgcMCVf5S70=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
build-system = [
|
||||||
|
setuptools
|
||||||
|
];
|
||||||
buildInputs = [ libmilter ];
|
buildInputs = [ libmilter ];
|
||||||
nativeCheckInputs = [ pyasyncore ];
|
nativeCheckInputs = [ pyasyncore ];
|
||||||
propagatedBuildInputs = [
|
dependencies = [
|
||||||
bsddb3
|
berkeleydb
|
||||||
pydns
|
pydns
|
||||||
];
|
];
|
||||||
patches = [
|
|
||||||
(fetchpatch { # https://github.com/sdgathman/pymilter/pull/57
|
|
||||||
name = "Remove-calls-to-the-deprecated-method-assertEquals";
|
|
||||||
url = "https://github.com/sdgathman/pymilter/commit/1ead9028fc63ae3ec6ea3b0c438e6ed088a2b20e.patch";
|
|
||||||
hash = "sha256-/5LlDR15nMR3l7rkVjT3w4FbDTFAAgNdERWlPNL2TVg=";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
preBuild = ''
|
preBuild = ''
|
||||||
sed -i 's/import thread/import _thread as thread/' Milter/greylist.py
|
sed -i 's/import thread/import _thread as thread/' Milter/greylist.py
|
||||||
|
Loading…
Reference in New Issue
Block a user