2020-06-07 08:39:17 +00:00
|
|
|
{ lib
|
2018-10-16 17:23:30 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-06-07 08:39:17 +00:00
|
|
|
, six, pyyaml, mock
|
|
|
|
, pytestCheckHook
|
|
|
|
, enum34
|
|
|
|
, isPy3k
|
2018-10-16 17:23:30 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ddt";
|
2022-08-11 21:43:45 +00:00
|
|
|
version = "1.6.0";
|
2018-10-16 17:23:30 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-03-03 00:48:06 +00:00
|
|
|
hash = "sha256-9xs0hzG4x4wxAL/72VGnafvUOQiNH9uzhB7uAZr4Cs0=";
|
2018-10-16 17:23:30 +00:00
|
|
|
};
|
|
|
|
|
2020-06-07 08:39:17 +00:00
|
|
|
propagatedBuildInputs = lib.optionals (!isPy3k) [
|
|
|
|
enum34
|
|
|
|
];
|
2018-11-25 11:57:31 +00:00
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [ six pyyaml mock pytestCheckHook ];
|
2022-07-16 10:59:04 +00:00
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
# pytest can't import one file even with PYTHONPATH set
|
|
|
|
rm test/test_named_data.py
|
|
|
|
'';
|
|
|
|
|
2020-06-07 08:39:17 +00:00
|
|
|
meta = with lib; {
|
2018-10-16 17:23:30 +00:00
|
|
|
description = "Data-Driven/Decorated Tests, a library to multiply test cases";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/txels/ddt";
|
2022-07-16 10:59:04 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2018-10-16 17:23:30 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|