2020-06-07 10:39:17 +02:00
|
|
|
{ lib
|
2018-10-16 19:23:30 +02:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-06-07 10:39:17 +02:00
|
|
|
, six, pyyaml, mock
|
|
|
|
, pytestCheckHook
|
|
|
|
, enum34
|
|
|
|
, isPy3k
|
2018-10-16 19:23:30 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ddt";
|
2020-06-06 08:47:03 +02:00
|
|
|
version = "1.4.1";
|
2018-10-16 19:23:30 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-06 08:47:03 +02:00
|
|
|
sha256 = "0595e70d074e5777771a45709e99e9d215552fb1076443a25fad6b23d8bf38da";
|
2018-10-16 19:23:30 +02:00
|
|
|
};
|
|
|
|
|
2020-06-07 10:39:17 +02:00
|
|
|
checkInputs = [ six pyyaml mock pytestCheckHook ];
|
2018-11-25 12:57:31 +01:00
|
|
|
|
2020-06-07 10:39:17 +02:00
|
|
|
propagatedBuildInputs = lib.optionals (!isPy3k) [
|
|
|
|
enum34
|
|
|
|
];
|
2018-11-25 12:57:31 +01:00
|
|
|
|
2020-06-07 10:39:17 +02:00
|
|
|
meta = with lib; {
|
2018-10-16 19:23:30 +02:00
|
|
|
description = "Data-Driven/Decorated Tests, a library to multiply test cases";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/txels/ddt";
|
2018-10-16 19:23:30 +02:00
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|