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