mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 08:13:04 +00:00
370f5b4c57
It's not a library.
27 lines
772 B
Nix
27 lines
772 B
Nix
{ 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;
|
|
};
|
|
}
|