1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytest-asyncio,
6 pytestCheckHook,
7 pythonOlder,
8 httpx,
9}:
10
11buildPythonPackage rec {
12 pname = "whodap";
13 version = "0.1.13";
14 format = "setuptools";
15
16 disabled = pythonOlder "3.8";
17
18 src = fetchFromGitHub {
19 owner = "pogzyb";
20 repo = "whodap";
21 tag = version;
22 hash = "sha256-VSFtHjdG9pJAryGUgwI0NxxaW0JiXEHU7aVvXYxymtc=";
23 };
24
25 propagatedBuildInputs = [ httpx ];
26
27 nativeCheckInputs = [
28 pytest-asyncio
29 pytestCheckHook
30 ];
31
32 disabledTestPaths = [
33 # Requires network access
34 "tests/test_client.py"
35 ];
36
37 pythonImportsCheck = [ "whodap" ];
38
39 meta = with lib; {
40 description = "Python RDAP utility for querying and parsing information about domain names";
41 homepage = "https://github.com/pogzyb/whodap";
42 changelog = "https://github.com/pogzyb/whodap/releases/tag/${src.tag}";
43 license = with licenses; [ mit ];
44 maintainers = with maintainers; [ fab ];
45 };
46}