From 94d2943d871bea4deeff60f989b4fe66a2de893a Mon Sep 17 00:00:00 2001 From: Jonathan Ringer Date: Thu, 5 Nov 2020 15:19:14 -0800 Subject: [PATCH] python3Packages.amply: fix tests --- pkgs/development/python-modules/amply/default.nix | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/amply/default.nix b/pkgs/development/python-modules/amply/default.nix index ddb75d592b8..1962d004f41 100644 --- a/pkgs/development/python-modules/amply/default.nix +++ b/pkgs/development/python-modules/amply/default.nix @@ -4,6 +4,7 @@ , setuptools_scm , docutils , pyparsing +, pytestCheckHook }: buildPythonPackage rec { @@ -15,15 +16,13 @@ buildPythonPackage rec { sha256 = "cb12dcb49d16b168c02be128a1527ecde50211e4bd94af76ff4e67707f5a2d38"; }; - buildInputs = [ setuptools_scm ]; + nativeBuildInputs = [ setuptools_scm ]; propagatedBuildInputs = [ docutils pyparsing ]; + checkInputs = [ pytestCheckHook ]; - checkPhase = '' - python tests/test_amply.py - ''; pythonImportsCheck = [ "amply" ]; meta = with stdenv.lib; {