Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dnsvalidator: init at 0.1-unstable-2023-01-17 #362574

Merged
merged 1 commit into from
Dec 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions pkgs/by-name/dn/dnsvalidator/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
lib,
python3,
fetchFromGitHub,
}:

python3.pkgs.buildPythonApplication rec {
pname = "dnsvalidator";
version = "0.1-unstable-2023-01-17";
pyproject = true;

src = fetchFromGitHub {
owner = "vortexau";
repo = "dnsvalidator";
# https://github.com/vortexau/dnsvalidator/issues/21
rev = "146c9b0e24d806b25697fbb541bf9f19a3086d41";
hash = "sha256-8pbBEtkiaGYp5ekkA1UUZ+5DX/iarxKdpQn5hM3cmvA=";
};

postPatch = ''
substituteInPlace setup.py \
--replace-fail "'pytest-runner'" ""
'';

pythonRemoveDeps = [ "ipaddress" ];

build-system = with python3.pkgs; [ setuptools ];

dependencies = with python3.pkgs; [
colorclass
dnspython
netaddr
requests
];

# Project has no tests
doCheck = false;

pythonImportsCheck = [ "dnsvalidator" ];

meta = {
description = "Tool to maintain a list of IPv4 DNS servers";
homepage = "https://github.com/vortexau/dnsvalidator";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ fab ];
mainProgram = "dnsvalidator";
};
}
Loading