python.pkgs.ddt: fix build

This commit is contained in:
Frederik Rietdijk 2020-06-07 10:39:17 +02:00
parent f1a4e82a1a
commit 141e15d8e0

View File

@ -1,7 +1,10 @@
{ stdenv { lib
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
, nose, six, pyyaml, mock , six, pyyaml, mock
, pytestCheckHook
, enum34
, isPy3k
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@ -13,13 +16,13 @@ buildPythonPackage rec {
sha256 = "0595e70d074e5777771a45709e99e9d215552fb1076443a25fad6b23d8bf38da"; sha256 = "0595e70d074e5777771a45709e99e9d215552fb1076443a25fad6b23d8bf38da";
}; };
checkInputs = [ nose six pyyaml mock ]; checkInputs = [ six pyyaml mock pytestCheckHook ];
checkPhase = '' propagatedBuildInputs = lib.optionals (!isPy3k) [
nosetests -s enum34
''; ];
meta = with stdenv.lib; { meta = with lib; {
description = "Data-Driven/Decorated Tests, a library to multiply test cases"; description = "Data-Driven/Decorated Tests, a library to multiply test cases";
homepage = "https://github.com/txels/ddt"; homepage = "https://github.com/txels/ddt";
license = licenses.mit; license = licenses.mit;