git.iko.soy/typeable/nixpkgs
on master help sign in
pythonPackages.tld: enable tests
commit7a22dc48156a8db600240cdfd617f1ca1667a1b6 authorFlorian Klink <flokli@flokli.de> dateWed 1 May 2019, 23:56 (8 years ago) parent3a1792e
1 file changed+16−4
pkgs/development/python-modules/tld/default.nix+16−4
pkgs/development/python-modules/tld/default.nix+16−4
@@ -1,6 +1,6 @@
1−{ stdenv, fetchPypi, buildPythonPackage, six }:
1+{ stdenv, fetchPypi, python }:
22
3−buildPythonPackage rec {
3+python.pkgs.buildPythonPackage rec {
44 pname = "tld";
55 version = "0.9.3";
66
@@ -9,8 +9,20 @@ buildPythonPackage rec {
99 sha256 = "0i0prgwrmm157h6fa5bx9wm0m70qq2nhzp743374a94p9s766rpp";
1010 };
1111
12− doCheck = false;
13− propagatedBuildInputs = [ six ];
12+ propagatedBuildInputs = with python.pkgs; [ six ];
13+ checkInputs = with python.pkgs; [ factory_boy faker pytest pytestcov tox ];
14+
15+ # https://github.com/barseghyanartur/tld/issues/54
16+ disabledTests = stdenv.lib.concatMapStringsSep " and " (s: "not " + s) ([
17+ "test_1_update_tld_names"
18+ "test_1_update_tld_names_command"
19+ "test_2_update_tld_names_module"
20+ ]);
21+
22+ checkPhase = ''
23+ export PATH="$PATH:$out/bin"
24+ py.test -k '${disabledTests}'
25+ '';
1426
1527 meta = with stdenv.lib; {
1628 homepage = https://github.com/barseghyanartur/tld;