From 3a2fc2dce8ccaa643e956e0de5b927ddd62e1c9a Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 19 Aug 2021 10:28:17 +0200 Subject: [PATCH] python3Packages.pytest-astropy: add empty checkPhase --- .../python-modules/pytest-astropy/default.nix | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/pytest-astropy/default.nix b/pkgs/development/python-modules/pytest-astropy/default.nix index 981860c7a643..f6736a736c34 100644 --- a/pkgs/development/python-modules/pytest-astropy/default.nix +++ b/pkgs/development/python-modules/pytest-astropy/default.nix @@ -10,11 +10,13 @@ , pytest-openfiles , pytest-arraydiff , setuptools-scm +, pythonOlder }: buildPythonPackage rec { pname = "pytest-astropy"; version = "0.8.0"; + disabled = pythonOlder "3.6"; src = fetchPypi { inherit pname version; @@ -25,7 +27,9 @@ buildPythonPackage rec { setuptools-scm ]; - buildInputs = [ pytest ]; + buildInputs = [ + pytest + ]; propagatedBuildInputs = [ hypothesis @@ -38,12 +42,15 @@ buildPythonPackage rec { ]; # pytest-astropy is a meta package and has no tests - doCheck = false; + #doCheck = false; + checkPhase = '' + # 'doCheck = false;' still invokes the pytestCheckPhase which makes the build fail + ''; meta = with lib; { description = "Meta-package containing dependencies for testing"; homepage = "https://astropy.org"; license = licenses.bsd3; - maintainers = [ maintainers.costrouc ]; + maintainers = with maintainers; [ costrouc ]; }; }