2019-05-01 22:56:49 +01:00
|
|
|
{ stdenv, fetchPypi, python }:
|
2019-05-01 22:29:34 +01:00
|
|
|
|
2019-05-01 22:56:49 +01:00
|
|
|
python.pkgs.buildPythonPackage rec {
|
2019-05-01 22:29:34 +01:00
|
|
|
pname = "tld";
|
2020-06-06 07:47:34 +01:00
|
|
|
version = "0.12.2";
|
2019-05-01 22:29:34 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-06 07:47:34 +01:00
|
|
|
sha256 = "cf8410a7ed7b9477f563fa158dabef5117d8374cba55f65142ba0af6dcd15d4d";
|
2019-05-01 22:29:34 +01:00
|
|
|
};
|
|
|
|
|
2019-05-01 22:56:49 +01:00
|
|
|
propagatedBuildInputs = with python.pkgs; [ six ];
|
2019-08-31 12:57:57 +01:00
|
|
|
checkInputs = with python.pkgs; [ factory_boy faker pytestcov tox pytestCheckHook];
|
2019-05-01 22:56:49 +01:00
|
|
|
|
|
|
|
# https://github.com/barseghyanartur/tld/issues/54
|
2019-08-31 12:57:57 +01:00
|
|
|
disabledTests = [
|
2019-05-01 22:56:49 +01:00
|
|
|
"test_1_update_tld_names"
|
|
|
|
"test_1_update_tld_names_command"
|
|
|
|
"test_2_update_tld_names_module"
|
2019-08-31 12:57:57 +01:00
|
|
|
];
|
2019-05-01 22:56:49 +01:00
|
|
|
|
2019-08-31 12:57:57 +01:00
|
|
|
preCheck = ''
|
|
|
|
export PATH="$PATH:$out/bin"
|
2019-05-01 22:56:49 +01:00
|
|
|
'';
|
2019-05-01 22:29:34 +01:00
|
|
|
|
2019-08-31 12:57:57 +01:00
|
|
|
dontUseSetuptoolsCheck = true;
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"tld"
|
|
|
|
];
|
|
|
|
|
2019-05-01 22:29:34 +01:00
|
|
|
meta = with stdenv.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";
|
|
|
|
license = licenses.lgpl21;
|
2020-11-17 16:50:53 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2019-05-01 22:29:34 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|