3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/networking/nxdomain/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
787 B
Nix
Raw Normal View History

2020-10-25 17:26:51 +00:00
{ lib, buildPythonApplication, fetchPypi, dnspython, pytestCheckHook }:
buildPythonApplication rec {
pname = "nxdomain";
2021-04-26 00:06:52 +01:00
version = "1.0.2";
2020-10-25 17:26:51 +00:00
src = fetchPypi {
inherit pname version;
2021-04-26 00:06:52 +01:00
sha256 = "0va7nkbdjgzrf7fnbxkh1140pbc62wyj86rdrrh5wmg3phiziqkb";
2020-10-25 17:26:51 +00:00
};
propagatedBuildInputs = [ dnspython ];
checkInputs = [ pytestCheckHook ];
postCheck = ''
echo example.org > simple.list
python -m nxdomain --format dnsmasq --out dnsmasq.conf --simple ./simple.list
grep -q 'address=/example.org/' dnsmasq.conf
'';
meta = with lib; {
homepage = "https://github.com/zopieux/nxdomain";
description = "A domain (ad) block list creator";
platforms = platforms.all;
2021-04-26 00:06:52 +01:00
license = licenses.gpl3Only;
2020-10-25 17:26:51 +00:00
maintainers = with maintainers; [ zopieux ];
};
}