1{ lib
2, buildPythonPackage
3, fetchPypi
4, six, pyyaml, mock
5, pytestCheckHook
6, enum34
7, isPy3k
8}:
9
10buildPythonPackage rec {
11 pname = "ddt";
12 version = "1.6.0";
13
14 src = fetchPypi {
15 inherit pname version;
16 sha256 = "sha256-9xs0hzG4x4wxAL/72VGnafvUOQiNH9uzhB7uAZr4Cs0=";
17 };
18
19 propagatedBuildInputs = lib.optionals (!isPy3k) [
20 enum34
21 ];
22
23 checkInputs = [ six pyyaml mock pytestCheckHook ];
24
25 preCheck = ''
26 # pytest can't import one file even with PYTHONPATH set
27 rm test/test_named_data.py
28 '';
29
30 meta = with lib; {
31 description = "Data-Driven/Decorated Tests, a library to multiply test cases";
32 homepage = "https://github.com/txels/ddt";
33 maintainers = with maintainers; [ ];
34 license = licenses.mit;
35 };
36}