1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-25 15:11:35 +00:00
nixpkgs/pkgs/tools/networking/nxdomain/default.nix
2020-10-27 23:41:01 +01:00

30 lines
787 B
Nix

{ lib, buildPythonApplication, fetchPypi, dnspython, pytestCheckHook }:
buildPythonApplication rec {
pname = "nxdomain";
version = "1.0.1";
src = fetchPypi {
inherit pname version;
sha256 = "1z9iffggqq2kw6kpnj30shi98cg0bkvkwpglmhnkgwac6g55n2zn";
};
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;
license = licenses.gpl3Plus;
maintainers = with maintainers; [ zopieux ];
};
}