nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 37 lines 922 B view raw
1{ 2 lib, 3 python3Packages, 4 fetchPypi, 5}: 6 7python3Packages.buildPythonApplication rec { 8 pname = "nxdomain"; 9 version = "1.0.2"; 10 pyproject = true; 11 12 src = fetchPypi { 13 inherit pname version; 14 sha256 = "0va7nkbdjgzrf7fnbxkh1140pbc62wyj86rdrrh5wmg3phiziqkb"; 15 }; 16 17 build-system = with python3Packages; [ setuptools ]; 18 19 dependencies = with python3Packages; [ dnspython ]; 20 21 nativeCheckInputs = with python3Packages; [ pytestCheckHook ]; 22 23 postCheck = '' 24 echo example.org > simple.list 25 python -m nxdomain --format dnsmasq --out dnsmasq.conf --simple ./simple.list 26 grep -q 'address=/example.org/' dnsmasq.conf 27 ''; 28 29 meta = { 30 homepage = "https://github.com/zopieux/nxdomain"; 31 description = "Domain (ad) block list creator"; 32 mainProgram = "nxdomain"; 33 platforms = lib.platforms.all; 34 license = lib.licenses.gpl3Only; 35 maintainers = with lib.maintainers; [ zopieux ]; 36 }; 37}