about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/ddt/default.nix
blob: f0def3a3ad38b098bf341c310468e668c983acb2 (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
37
38
39
40
41
42
43
44
45
46
47
48
49
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder

# build-system
, setuptools

# tests
, aiounittest
, mock
, pytestCheckHook
, pyyaml
, six
}:

buildPythonPackage rec {
  pname = "ddt";
  version = "1.7.0";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-0XjRFavyWhuDJ+lPhaA+8JsdewyiVvYgMoSwJPL8cN8=";
  };

  nativeBuildInputs = [
    setuptools
  ];

  # aiounittest is not compatible with Python 3.12.
  doCheck = pythonOlder "3.12";

  nativeCheckInputs = [
    aiounittest
    mock
    pytestCheckHook
    pyyaml
    six
  ];

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