2c76a4cb41
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
36 lines
685 B
Nix
36 lines
685 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, setuptools
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "tlds";
|
|
version = "2023110300";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kichik";
|
|
repo = "tlds";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-rmKqY7Z4bBR4r+w4gH04g0Xm9N7QeMVcuFR3pB/pOQY=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"tlds"
|
|
];
|
|
|
|
# no tests
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "Automatically updated list of valid TLDs taken directly from IANA";
|
|
homepage = "https://github.com/mweinelt/tlds";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ hexa ];
|
|
};
|
|
}
|