Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 nix-update-script, 7}: 8 9buildPythonPackage rec { 10 pname = "tlds"; 11 version = "2024071000"; 12 pyproject = true; 13 14 src = fetchFromGitHub { 15 owner = "kichik"; 16 repo = "tlds"; 17 rev = "refs/tags/${version}"; 18 hash = "sha256-xt2IdF7V8NUW9nUg8x7XbMHLWir6CHAQcRIiH6ejV5M="; 19 }; 20 21 nativeBuildInputs = [ setuptools ]; 22 23 pythonImportsCheck = [ "tlds" ]; 24 25 # no tests 26 doCheck = false; 27 28 passthru.updateScript = nix-update-script { }; 29 30 meta = with lib; { 31 description = "Automatically updated list of valid TLDs taken directly from IANA"; 32 homepage = "https://github.com/kichik/tlds"; 33 license = licenses.mit; 34 maintainers = with maintainers; [ hexa ]; 35 }; 36}