1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 dnspython,
7 pythonOlder,
8}:
9
10buildPythonPackage rec {
11 pname = "pynslookup";
12 version = "1.8.1";
13 pyproject = true;
14
15 disabled = pythonOlder "3.8";
16
17 src = fetchFromGitHub {
18 owner = "wesinator";
19 repo = "pynslookup";
20 tag = "v${version}";
21 hash = "sha256-cb8oyI8D8SzBP+tm1jGPPshJYhPegYOH0RwIH03/K/A=";
22 };
23
24 build-system = [ setuptools ];
25
26 dependencies = [ dnspython ];
27
28 # Module has no tests
29 doCheck = false;
30
31 pythonImportsCheck = [ "nslookup" ];
32
33 meta = with lib; {
34 description = "Module to do DNS lookups";
35 homepage = "https://github.com/wesinator/pynslookup";
36 license = licenses.mpl20;
37 maintainers = with maintainers; [ fab ];
38 };
39}