2020-01-07 10:10:20 +00:00
|
|
|
{ lib, python, buildPythonPackage, fetchFromGitHub, pydns }:
|
2018-02-25 17:22:45 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2018-06-23 14:27:58 +01:00
|
|
|
pname = "pyspf";
|
2020-01-07 10:10:20 +00:00
|
|
|
version = "2.0.14";
|
2018-02-25 17:22:45 +00:00
|
|
|
|
2019-12-13 14:26:27 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sdgathman";
|
|
|
|
repo = pname;
|
|
|
|
rev = "pyspf-${version}";
|
2020-01-07 10:10:20 +00:00
|
|
|
sha256 = "0bmimlmwrq9glnjc4i6pwch30n3y5wyqmkjfyayxqxkfrixqwydi";
|
2018-02-25 17:22:45 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ pydns ];
|
|
|
|
|
2020-01-07 10:10:20 +00:00
|
|
|
# requires /etc/resolv.conf to exist
|
|
|
|
doCheck = false;
|
|
|
|
|
2018-02-25 17:22:45 +00:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = http://bmsi.com/python/milter.html;
|
|
|
|
description = "Python API for Sendmail Milters (SPF)";
|
|
|
|
maintainers = with maintainers; [ abbradar ];
|
|
|
|
license = licenses.gpl2;
|
|
|
|
};
|
|
|
|
}
|