nixpkgs/pkgs/development/python-modules/tld/default.nix

40 lines
927 B
Nix
Raw Normal View History

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