1{
2 lib,
3 python,
4 buildPythonPackage,
5 fetchFromGitHub,
6 pydns,
7}:
8
9buildPythonPackage rec {
10 pname = "pyspf";
11 version = "2.0.14";
12 format = "setuptools";
13
14 src = fetchFromGitHub {
15 owner = "sdgathman";
16 repo = pname;
17 rev = "pyspf-${version}";
18 sha256 = "0bmimlmwrq9glnjc4i6pwch30n3y5wyqmkjfyayxqxkfrixqwydi";
19 };
20
21 propagatedBuildInputs = [ pydns ];
22
23 # requires /etc/resolv.conf to exist
24 doCheck = false;
25
26 meta = with lib; {
27 homepage = "http://bmsi.com/python/milter.html";
28 description = "Python API for Sendmail Milters (SPF)";
29 maintainers = with maintainers; [ abbradar ];
30 license = licenses.gpl2;
31 };
32}