Merge pull request #109254 from fabaff/bump-tld

This commit is contained in:
Sandro 2021-01-13 12:11:19 +01:00 committed by GitHub
commit ebb5191ab4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,39 +1,39 @@
{ lib, stdenv, fetchPypi, python }:
{ lib
, buildPythonPackage
, factory_boy
, faker
, fetchPypi
, pytest-cov
, pytestCheckHook
, six
, tox
}:
python.pkgs.buildPythonPackage rec {
pname = "tld";
version = "0.12.4";
buildPythonPackage rec {
pname = "tld";
version = "0.12.5";
src = fetchPypi {
inherit pname version;
sha256 = "0976g7jcpi3jv7snawmfis5ybb6737cv2xw7wlanlfkyqljip24x";
sha256 = "0d1lbbg2qdw5jjxks0dqlf69bki5885mhj8ysvgylmrni56hjqqv";
};
propagatedBuildInputs = with python.pkgs; [ six ];
checkInputs = with python.pkgs; [ factory_boy faker pytestcov tox pytestCheckHook];
# https://github.com/barseghyanartur/tld/issues/54
disabledTests = [
"test_1_update_tld_names"
"test_1_update_tld_names_command"
"test_2_update_tld_names_module"
checkInputs = [
factory_boy
faker
pytest-cov
pytestCheckHook
tox
];
preCheck = ''
export PATH="$PATH:$out/bin"
'';
dontUseSetuptoolsCheck = true;
pythonImportsCheck = [
"tld"
];
pythonImportsCheck = [ "tld" ];
meta = with lib; {
homepage = "https://github.com/barseghyanartur/tld";
description = "Extracts the top level domain (TLD) from the URL given";
license = licenses.lgpl21;
maintainers = with maintainers; [ ];
# 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 ];
};
}