13 buildPythonPackage rec {
16 format = "setuptools";
18 disabled = pythonOlder "3.7";
20 src = fetchFromGitHub {
23 rev = "refs/tags/v${version}";
24 hash = "sha256-2CfRRHlIIaycUtzKeMBKi6pVPeBCb1nW3/1hoxQU1YM=";
35 propagatedBuildInputs = [
43 pythonImportsCheck = [
47 preCheck = lib.optionalString stdenv.isLinux ''
48 echo "nameserver 127.0.0.1" > resolv.conf
49 export NIX_REDIRECTS=/etc/protocols=${iana-etc}/etc/protocols:/etc/resolv.conf=$(realpath resolv.conf) \
50 LD_PRELOAD=${libredirect}/lib/libredirect.so
54 # Tests require network access
55 "ipwhois/tests/online/"
60 "test_unique_addresses"
65 description = "Library to retrieve and parse whois data";
66 homepage = "https://github.com/secynic/ipwhois";
67 changelog = "https://github.com/secynic/ipwhois/blob/v${version}/CHANGES.rst";
68 license = licenses.bsd2;
69 maintainers = with maintainers; [ fab ];