pypolicyd-spf: move to all-packages

It's not a library.
This commit is contained in:
Nikolay Amiantov 2018-02-25 20:19:51 +03:00
parent c336e5c872
commit 370f5b4c57
3 changed files with 28 additions and 26 deletions

View File

@ -0,0 +1,26 @@
{ lib, buildPythonApplication, fetchurl, pyspf }:
buildPythonApplication rec {
name = "pypolicyd-spf-${version}";
majorVersion = "2.0";
version = "${majorVersion}.2";
src = fetchurl {
url = "https://launchpad.net/pypolicyd-spf/${majorVersion}/${version}/+download/${name}.tar.gz";
sha256 = "1nm8y1jjgx6mxrbcxrbdnmkf8vglwp0wiw6jipzh641wb24gi76z";
};
propagatedBuildInputs = [ pyspf ];
preBuild = ''
substituteInPlace setup.py --replace "'/etc'" "'$out/etc'"
'';
meta = with lib; {
homepage = https://launchpad.net/pypolicyd-spf/;
description = "Postfix policy engine for Sender Policy Framework (SPF) checking";
maintainers = with maintainers; [ abbradar ];
license = licenses.asl20;
platforms = platforms.all;
};
}

View File

@ -12513,6 +12513,8 @@ with pkgs;
pyMAILt = callPackage ../servers/xmpp/pyMAILt {};
pypolicyd-spf = python3.pkgs.callPackage ../servers/mail/pypolicyd-spf { };
qpid-cpp = callPackage ../servers/amqp/qpid-cpp {
boost = boost155;
};

View File

@ -6168,32 +6168,6 @@ in {
pythonix = toPythonModule (callPackage ../development/python-modules/pythonix { });
pypolicyd-spf = buildPythonPackage rec {
name = "pypolicyd-spf-${version}";
majorVersion = "2.0";
version = "${majorVersion}.1";
disabled = !isPy3k;
src = pkgs.fetchurl {
url = "https://launchpad.net/pypolicyd-spf/${majorVersion}/${version}/+download/${name}.tar.gz";
sha256 = "09yi8y7pij5vzzrkc9sdw01x8w5n758d0qg7wv5hxd1l6if8c94i";
};
propagatedBuildInputs = with self; [ pyspf ];
preBuild = ''
substituteInPlace setup.py --replace "'/etc'" "'$out/etc'"
'';
meta = {
homepage = "https://launchpad.net/pypolicyd-spf/";
description = "Postfix policy engine for Sender Policy Framework (SPF) checking";
maintainers = with maintainers; [ abbradar ];
license = licenses.asl20;
platforms = platforms.all;
};
};
pyramid = buildPythonPackage rec {
pname = "pyramid";
version = "1.9.1";