1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 hatchling,
6}:
7
8buildPythonPackage rec {
9 pname = "whoisdomain";
10 version = "1.20250929.1";
11 pyproject = true;
12
13 src = fetchFromGitHub {
14 owner = "mboot-github";
15 repo = "WhoisDomain";
16 tag = version;
17 hash = "sha256-dyppd/6cBIkiiGm4S3khaNZ2DDyRrxWjeMqGYOMZ9YM=";
18 };
19
20 build-system = [ hatchling ];
21
22 pythonImportsCheck = [ "whoisdomain" ];
23
24 # Tests require network access
25 doCheck = false;
26
27 meta = with lib; {
28 description = "Module to perform whois lookups";
29 homepage = "https://github.com/mboot-github/WhoisDomain";
30 changelog = "https://github.com/mboot-github/WhoisDomain/releases/tag/${src.tag}";
31 license = licenses.mit;
32 maintainers = with maintainers; [ fab ];
33 mainProgram = "whoisdomain";
34 };
35}