2019-05-01 21:56:49 +00:00
|
|
|
{ stdenv, fetchPypi, python }:
|
2019-05-01 21:29:34 +00:00
|
|
|
|
2019-05-01 21:56:49 +00:00
|
|
|
python.pkgs.buildPythonPackage rec {
|
2019-05-01 21:29:34 +00:00
|
|
|
pname = "tld";
|
2019-12-19 19:31:24 +00:00
|
|
|
version = "0.11.9";
|
2019-05-01 21:29:34 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-12-19 19:31:24 +00:00
|
|
|
sha256 = "c5fe79df74b68ebc33406dfadc69f6484dee8005035a129fdb40b8fabfd06e9f";
|
2019-05-01 21:29:34 +00:00
|
|
|
};
|
|
|
|
|
2019-05-01 21:56:49 +00:00
|
|
|
propagatedBuildInputs = with python.pkgs; [ six ];
|
2019-08-31 11:57:57 +00:00
|
|
|
checkInputs = with python.pkgs; [ factory_boy faker pytestcov tox pytestCheckHook];
|
2019-05-01 21:56:49 +00:00
|
|
|
|
|
|
|
# https://github.com/barseghyanartur/tld/issues/54
|
2019-08-31 11:57:57 +00:00
|
|
|
disabledTests = [
|
2019-05-01 21:56:49 +00:00
|
|
|
"test_1_update_tld_names"
|
|
|
|
"test_1_update_tld_names_command"
|
|
|
|
"test_2_update_tld_names_module"
|
2019-08-31 11:57:57 +00:00
|
|
|
];
|
2019-05-01 21:56:49 +00:00
|
|
|
|
2019-08-31 11:57:57 +00:00
|
|
|
preCheck = ''
|
|
|
|
export PATH="$PATH:$out/bin"
|
2019-05-01 21:56:49 +00:00
|
|
|
'';
|
2019-05-01 21:29:34 +00:00
|
|
|
|
2019-08-31 11:57:57 +00:00
|
|
|
dontUseSetuptoolsCheck = true;
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"tld"
|
|
|
|
];
|
|
|
|
|
2019-05-01 21:29:34 +00:00
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/barseghyanartur/tld";
|
2019-05-01 21:29:34 +00:00
|
|
|
description = "Extracts the top level domain (TLD) from the URL given";
|
|
|
|
license = licenses.lgpl21;
|
|
|
|
maintainers = with maintainers; [ genesis ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|