python3Packages.tld: update check part
This commit is contained in:
parent
9852c79bca
commit
b5556fe6b4
@ -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";
|
pname = "tld";
|
||||||
version = "0.12.5";
|
version = "0.12.5";
|
||||||
|
|
||||||
@ -9,25 +18,15 @@ python.pkgs.buildPythonPackage rec {
|
|||||||
sha256 = "0d1lbbg2qdw5jjxks0dqlf69bki5885mhj8ysvgylmrni56hjqqv";
|
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";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user