1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 hatchling,
6 inetutils,
7 pythonOlder,
8}:
9
10buildPythonPackage rec {
11 pname = "whois";
12 version = "0.99.3";
13 pyproject = true;
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchFromGitHub {
18 owner = "DannyCork";
19 repo = "python-whois";
20 tag = version;
21 hash = "sha256-uKAqpxb72fo0DiaChuJvDizq0z/oFSDHWJuK4vuYIzo=";
22 };
23
24 nativeBuildInputs = [ hatchling ];
25
26 propagatedBuildInputs = [
27 # whois is needed
28 inetutils
29 ];
30
31 # Tests require network access
32 doCheck = false;
33
34 pythonImportsCheck = [ "whois" ];
35
36 meta = with lib; {
37 description = "Python module/library for retrieving WHOIS information";
38 homepage = "https://github.com/DannyCork/python-whois/";
39 changelog = "https://github.com/DannyCork/python-whois/releases/tag/${version}";
40 license = with licenses; [ mit ];
41 maintainers = with maintainers; [ fab ];
42 };
43}