about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/ddt/default.nix
blob: 4c0d90575c69193a94b37667b02a116451f549a1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{ lib
, buildPythonPackage
, fetchPypi
, six, pyyaml, mock
, pytestCheckHook
, enum34
, isPy3k
}:

buildPythonPackage rec {
  pname = "ddt";
  version = "1.6.0";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-9xs0hzG4x4wxAL/72VGnafvUOQiNH9uzhB7uAZr4Cs0=";
  };

  propagatedBuildInputs = lib.optionals (!isPy3k) [
    enum34
  ];

  nativeCheckInputs = [ six pyyaml mock pytestCheckHook ];

  preCheck = ''
    # pytest can't import one file even with PYTHONPATH set
    rm test/test_named_data.py
  '';

  meta = with lib; {
    description = "Data-Driven/Decorated Tests, a library to multiply test cases";
    homepage = "https://github.com/txels/ddt";
    maintainers = with maintainers; [ ];
    license = licenses.mit;
  };
}