python3Packages.tld: update check part

This commit is contained in:
Fabian Affolter 2021-01-13 09:08:47 +01:00
parent 9852c79bca
commit b5556fe6b4

View File

@ -1,6 +1,15 @@
{ lib, stdenv, fetchPypi, python }:
{ lib
, buildPythonPackage
, factory_boy
, faker
, fetchPypi
, pytest-cov
, pytestCheckHook
, six
, tox
}:
python.pkgs.buildPythonPackage rec {
buildPythonPackage rec {
pname = "tld";
version = "0.12.5";
@ -9,25 +18,15 @@ python.pkgs.buildPythonPackage rec {
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";