Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 hatchling, 6 pythonOlder, 7}: 8 9buildPythonPackage rec { 10 pname = "whoisdomain"; 11 version = "1.20240129.1"; 12 pyproject = true; 13 14 disabled = pythonOlder "3.7"; 15 16 src = fetchFromGitHub { 17 owner = "mboot-github"; 18 repo = "WhoisDomain"; 19 rev = "refs/tags/${version}"; 20 hash = "sha256-nRj/WkYjMZuQoYF+QFIHABlek4DxvvEnOTeFYLHYvZc="; 21 }; 22 23 nativeBuildInputs = [ hatchling ]; 24 25 pythonImportsCheck = [ "whoisdomain" ]; 26 27 # Tests require network access 28 doCheck = false; 29 30 meta = with lib; { 31 description = "Module to perform whois lookups"; 32 mainProgram = "whoisdomain"; 33 homepage = "https://github.com/mboot-github/WhoisDomain"; 34 changelog = "https://github.com/mboot-github/WhoisDomain/releases/tag/${version}"; 35 license = licenses.mit; 36 maintainers = with maintainers; [ fab ]; 37 }; 38}