2021-01-13 08:08:47 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, factory_boy
|
|
|
|
, faker
|
|
|
|
, fetchPypi
|
|
|
|
, pytest-cov
|
|
|
|
, pytestCheckHook
|
|
|
|
, six
|
|
|
|
, tox
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "tld";
|
2021-01-13 07:55:21 +00:00
|
|
|
version = "0.12.5";
|
2019-05-01 22:29:34 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-01-13 07:55:21 +00:00
|
|
|
sha256 = "0d1lbbg2qdw5jjxks0dqlf69bki5885mhj8ysvgylmrni56hjqqv";
|
2019-05-01 22:29:34 +01:00
|
|
|
};
|
|
|
|
|
2021-01-13 08:08:47 +00:00
|
|
|
checkInputs = [
|
|
|
|
factory_boy
|
|
|
|
faker
|
|
|
|
pytest-cov
|
|
|
|
pytestCheckHook
|
|
|
|
tox
|
2019-08-31 12:57:57 +01:00
|
|
|
];
|
2019-05-01 22:56:49 +01:00
|
|
|
|
2021-01-13 08:08:47 +00:00
|
|
|
pythonImportsCheck = [ "tld" ];
|
2019-08-31 12:57:57 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/barseghyanartur/tld";
|
2019-05-01 22:29:34 +01:00
|
|
|
description = "Extracts the top level domain (TLD) from the URL given";
|
2021-01-13 08:12:46 +00:00
|
|
|
# https://github.com/barseghyanartur/tld/blob/master/README.rst#license
|
|
|
|
# MPL-1.1 OR GPL-2.0-only OR LGPL-2.1-or-later
|
|
|
|
license = with licenses; [ lgpl21Plus mpl11 gpl2Only ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
2019-05-01 22:29:34 +01:00
|
|
|
};
|
|
|
|
}
|