python.pkgs.pyspf: move to a separate file

This commit is contained in:
Nikolay Amiantov 2018-02-25 20:22:45 +03:00
parent 22c37db7f2
commit 674c3d20fc
2 changed files with 21 additions and 19 deletions

View File

@ -0,0 +1,20 @@
{ lib, buildPythonPackage, fetchurl, pydns }:
buildPythonPackage rec {
name = "pyspf-${version}";
version = "2.0.12";
src = fetchurl {
url = "mirror://sourceforge/pymilter/pyspf/${name}/${name}.tar.gz";
sha256 = "18j1rmbmhih7q6y12grcj169q7sx1986qn4gmpla9y5gwfh1p8la";
};
propagatedBuildInputs = [ pydns ];
meta = with lib; {
homepage = http://bmsi.com/python/milter.html;
description = "Python API for Sendmail Milters (SPF)";
maintainers = with maintainers; [ abbradar ];
license = licenses.gpl2;
};
}

View File

@ -6278,25 +6278,7 @@ in {
pyroute2 = callPackage ../development/python-modules/pyroute2 { };
pyspf = buildPythonPackage rec {
name = "pyspf-${version}";
version = "2.0.12";
src = pkgs.fetchurl {
url = "mirror://sourceforge/pymilter/pyspf/${name}/${name}.tar.gz";
sha256 = "18j1rmbmhih7q6y12grcj169q7sx1986qn4gmpla9y5gwfh1p8la";
};
propagatedBuildInputs = with self; [ pydns ];
meta = {
homepage = "http://bmsi.com/python/milter.html";
description = "Python API for Sendmail Milters (SPF)";
maintainers = with maintainers; [ abbradar ];
license = licenses.gpl2;
platforms = platforms.all;
};
};
pyspf = callPackage ../development/python-modules/pyspf { };
pysrt = callPackage ../development/python-modules/pysrt { };