mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 16:33:15 +00:00
37 lines
748 B
Nix
37 lines
748 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
nix-update-script,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "tlds";
|
|
version = "2024092600";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kichik";
|
|
repo = "tlds";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-ybqC0FUrTyTO2UfS/bCAUdzKtcK06wTeLv1Mv/R8RS0=";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools ];
|
|
|
|
pythonImportsCheck = [ "tlds" ];
|
|
|
|
# no tests
|
|
doCheck = false;
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = with lib; {
|
|
description = "Automatically updated list of valid TLDs taken directly from IANA";
|
|
homepage = "https://github.com/kichik/tlds";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ hexa ];
|
|
};
|
|
}
|