1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 hatchling, 6 pythonOlder, 7}: 8 9buildPythonPackage rec { 10 pname = "whoisdomain"; 11 version = "1.20250220.2"; 12 pyproject = true; 13 14 disabled = pythonOlder "3.7"; 15 16 src = fetchFromGitHub { 17 owner = "mboot-github"; 18 repo = "WhoisDomain"; 19 tag = version; 20 hash = "sha256-/f5zV0vgjOIIux4e0mXeFSfY8cNpfGkfeCs3djla2zM="; 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}