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