mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
Merge pull request #101669 from Zopieux/nxdomain
nxdomain: init at 1.0.1
This commit is contained in:
commit
3d04e9a779
2 changed files with 31 additions and 0 deletions
29
pkgs/tools/networking/nxdomain/default.nix
Normal file
29
pkgs/tools/networking/nxdomain/default.nix
Normal file
|
@ -0,0 +1,29 @@
|
|||
{ 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 ];
|
||||
};
|
||||
}
|
|
@ -5904,6 +5904,8 @@ in
|
|||
|
||||
nwdiag = with python3Packages; toPythonApplication nwdiag;
|
||||
|
||||
nxdomain = python3.pkgs.callPackage ../tools/networking/nxdomain { };
|
||||
|
||||
nxpmicro-mfgtools = callPackage ../development/tools/misc/nxpmicro-mfgtools { };
|
||||
|
||||
nyancat = callPackage ../tools/misc/nyancat { };
|
||||
|
|
Loading…
Reference in a new issue