Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 hatchling,
6}:
7
8buildPythonPackage (finalAttrs: {
9 pname = "whoisdomain";
10 version = "1.20260106.1";
11 pyproject = true;
12
13 src = fetchFromGitHub {
14 owner = "mboot-github";
15 repo = "WhoisDomain";
16 tag = finalAttrs.version;
17 hash = "sha256-OQlOqDmBhqHVFs6U3lC1EryNu4UEi8fzKERkOE3uBaw=";
18 };
19
20 build-system = [ hatchling ];
21
22 pythonImportsCheck = [ "whoisdomain" ];
23
24 # Tests require network access
25 doCheck = false;
26
27 meta = {
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/${finalAttrs.src.tag}";
31 license = lib.licenses.mit;
32 maintainers = with lib.maintainers; [ fab ];
33 mainProgram = "whoisdomain";
34 };
35})