nixpkgs/pkgs/tools/networking/nxdomain/default.nix
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

31 lines
821 B
Nix

{ lib, buildPythonApplication, fetchPypi, dnspython, pytestCheckHook }:
buildPythonApplication rec {
pname = "nxdomain";
version = "1.0.2";
src = fetchPypi {
inherit pname version;
sha256 = "0va7nkbdjgzrf7fnbxkh1140pbc62wyj86rdrrh5wmg3phiziqkb";
};
propagatedBuildInputs = [ dnspython ];
nativeCheckInputs = [ 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 = "Domain (ad) block list creator";
mainProgram = "nxdomain";
platforms = platforms.all;
license = licenses.gpl3Only;
maintainers = with maintainers; [ zopieux ];
};
}