nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

commit a5e7ca4c34ed32a884fc643eb1c5f9d8cf659782
parent f7586b4709cd251b3369f16984426be461ff83c5
Author: Nikolay Korotkiy <sikmir@gmail.com>
Date:   Sun, 12 Jul 2020 01:42:05 +0300

Fix tests

Diffstat:
Mpkgs/development/python-modules/cheetah3/default.nix | 6++++++
Mpkgs/development/python-modules/click/default.nix | 10+++++-----
Mpkgs/development/python-modules/gpxelevations/default.nix | 7+++----
Mpkgs/development/python-modules/mercantile/default.nix | 3+--
Mpkgs/development/python-modules/pymbtiles/default.nix | 3+--
Mpkgs/tools/geo/elevation/default.nix | 3+--
Mpkgs/tools/geo/supermercado/default.nix | 3+--
Mpkgs/tools/geo/tpkutils/default.nix | 3+--
8 files changed, 19 insertions(+), 19 deletions(-)

diff --git a/pkgs/development/python-modules/cheetah3/default.nix b/pkgs/development/python-modules/cheetah3/default.nix @@ -8,6 +8,12 @@ python3Packages.buildPythonPackage { inherit pname version; src = sources.cheetah3; + checkInputs = with python3Packages; [ pygments markdown ]; + + checkPhase = '' + ${python3Packages.python.interpreter} Cheetah/Tests/Test.py + ''; + doCheck = false; meta = with lib; { diff --git a/pkgs/development/python-modules/click/default.nix b/pkgs/development/python-modules/click/default.nix @@ -18,12 +18,12 @@ python3Packages.buildPythonPackage { } ); - checkInputs = with python3Packages; [ pytest ]; + checkInputs = with python3Packages; [ pytestCheckHook ]; - checkPhase = "py.test tests"; - - # https://github.com/pallets/click/issues/823 - doCheck = false; + disabledTests = [ + # https://github.com/pallets/click/issues/823 + "test_legacy_callbacks" + ]; meta = with lib; { homepage = "http://click.pocoo.org/"; diff --git a/pkgs/development/python-modules/gpxelevations/default.nix b/pkgs/development/python-modules/gpxelevations/default.nix @@ -10,10 +10,9 @@ python3Packages.buildPythonApplication { propagatedBuildInputs = with python3Packages; [ requests gpxpy ]; - doCheck = false; - #checkPhase = '' - # ${python3Packages.python.interpreter} -m unittest test - #''; + checkPhase = '' + HOME=tmp_home ${python3Packages.python.interpreter} -m unittest test + ''; meta = with lib; { inherit (sources.gpxelevations) description homepage; diff --git a/pkgs/development/python-modules/mercantile/default.nix b/pkgs/development/python-modules/mercantile/default.nix @@ -10,8 +10,7 @@ python3Packages.buildPythonPackage { propagatedBuildInputs = with python3Packages; [ click ]; - checkInputs = with python3Packages; [ pytest hypothesis ]; - checkPhase = "pytest"; + checkInputs = with python3Packages; [ pytestCheckHook hypothesis ]; meta = with lib; { inherit (sources.mercantile) description homepage; diff --git a/pkgs/development/python-modules/pymbtiles/default.nix b/pkgs/development/python-modules/pymbtiles/default.nix @@ -8,8 +8,7 @@ python3Packages.buildPythonPackage { inherit pname version; src = sources.pymbtiles; - checkInputs = with python3Packages; [ pytest ]; - checkPhase = "pytest"; + checkInputs = with python3Packages; [ pytestCheckHook ]; meta = with lib; { inherit (sources.pymbtiles) description homepage; diff --git a/pkgs/tools/geo/elevation/default.nix b/pkgs/tools/geo/elevation/default.nix @@ -34,8 +34,7 @@ python3Packages.buildPythonApplication { done ''; - checkInputs = with python3Packages; [ pytest pytest-mock ]; - checkPhase = "pytest"; + checkInputs = with python3Packages; [ pytestCheckHook pytest-mock ]; meta = with lib; { inherit (sources.elevation) description homepage; diff --git a/pkgs/tools/geo/supermercado/default.nix b/pkgs/tools/geo/supermercado/default.nix @@ -25,8 +25,7 @@ python3Packages.buildPythonApplication { propagatedBuildInputs = with python3Packages; [ click-plugins rasterio mercantile numpy ]; - checkInputs = with python3Packages; [ pytest ]; - checkPhase = "pytest"; + checkInputs = with python3Packages; [ pytestCheckHook ]; meta = with lib; { inherit (sources.supermercado) description homepage; diff --git a/pkgs/tools/geo/tpkutils/default.nix b/pkgs/tools/geo/tpkutils/default.nix @@ -10,8 +10,7 @@ python3Packages.buildPythonApplication { propagatedBuildInputs = with python3Packages; [ mercantile pymbtiles setuptools six ]; - checkInputs = with python3Packages; [ pytest ]; - checkPhase = "pytest"; + checkInputs = with python3Packages; [ pytestCheckHook ]; meta = with lib; { inherit (sources.tpkutils) description homepage;