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 { buildPythonPackage rec {
pname = "tld"; pname = "tld";
version = "0.12.4"; version = "0.12.5";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "0976g7jcpi3jv7snawmfis5ybb6737cv2xw7wlanlfkyqljip24x"; sha256 = "0d1lbbg2qdw5jjxks0dqlf69bki5885mhj8ysvgylmrni56hjqqv";
}; };
propagatedBuildInputs = with python.pkgs; [ six ]; checkInputs = [
checkInputs = with python.pkgs; [ factory_boy faker pytestcov tox pytestCheckHook]; factory_boy
faker
# https://github.com/barseghyanartur/tld/issues/54 pytest-cov
disabledTests = [ pytestCheckHook
"test_1_update_tld_names" tox
"test_1_update_tld_names_command"
"test_2_update_tld_names_module"
]; ];
preCheck = '' pythonImportsCheck = [ "tld" ];
export PATH="$PATH:$out/bin"
'';
dontUseSetuptoolsCheck = true;
pythonImportsCheck = [
"tld"
];
meta = with lib; { meta = with lib; {
homepage = "https://github.com/barseghyanartur/tld"; homepage = "https://github.com/barseghyanartur/tld";
description = "Extracts the top level domain (TLD) from the URL given"; description = "Extracts the top level domain (TLD) from the URL given";
license = licenses.lgpl21; # https://github.com/barseghyanartur/tld/blob/master/README.rst#license
maintainers = with maintainers; [ ]; # MPL-1.1 OR GPL-2.0-only OR LGPL-2.1-or-later
license = with licenses; [ lgpl21Plus mpl11 gpl2Only ];
maintainers = with maintainers; [ fab ];
}; };
} }