1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 python-memcached,
6 pytestCheckHook,
7 pythonOlder,
8 setuptools,
9}:
10
11buildPythonPackage rec {
12 pname = "cymruwhois";
13 version = "1.6";
14 pyproject = true;
15
16 disabled = pythonOlder "3.10";
17
18 src = fetchFromGitHub {
19 owner = "JustinAzoff";
20 repo = "python-cymruwhois";
21 tag = version;
22 hash = "sha256-d9m668JYI9mxUycoVWyaDCR7SOca+ebymZxWtgSPWNU=";
23 };
24
25 build-system = [ setuptools ];
26
27 optional-dependencies = {
28 CACHE = [ python-memcached ];
29 };
30
31 nativeCheckInputs = [ pytestCheckHook ];
32
33 pythonImportsCheck = [ "cymruwhois" ];
34
35 disabledTests = [
36 # Tests require network access
37 "test_asn"
38 # AssertionError
39 "test_doctest"
40 ];
41
42 meta = {
43 description = "Python client for the whois.cymru.com service";
44 homepage = "https://github.com/JustinAzoff/python-cymruwhois";
45 license = lib.licenses.mit;
46 maintainers = with lib.maintainers; [ fab ];
47 };
48}