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