2020-06-15 15:56:04 +00:00
|
|
|
{ lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2024-01-13 08:15:51 +00:00
|
|
|
, pythonOlder
|
|
|
|
|
|
|
|
# build-system
|
|
|
|
, setuptools
|
|
|
|
|
|
|
|
# tests
|
|
|
|
, aiounittest
|
|
|
|
, mock
|
2020-06-15 15:56:04 +00:00
|
|
|
, pytestCheckHook
|
2024-01-13 08:15:51 +00:00
|
|
|
, pyyaml
|
|
|
|
, six
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ddt";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "1.7.2";
|
2024-01-13 08:15:51 +00:00
|
|
|
pyproject = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-0hXWsIOWMBPEoZseTc1qlugOQ6t3UZWXpqz88umj4Es=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
2020-06-15 15:56:04 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
# aiounittest is not compatible with Python 3.12.
|
|
|
|
doCheck = pythonOlder "3.12";
|
2022-08-12 12:06:08 +00:00
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
aiounittest
|
|
|
|
mock
|
|
|
|
pytestCheckHook
|
|
|
|
pyyaml
|
|
|
|
six
|
|
|
|
];
|
2022-08-12 12:06:08 +00:00
|
|
|
|
2020-06-15 15:56:04 +00:00
|
|
|
meta = with lib; {
|
2024-01-13 08:15:51 +00:00
|
|
|
changelog = "https://github.com/datadriventests/ddt/releases/tag/${version}";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Data-Driven/Decorated Tests, a library to multiply test cases";
|
|
|
|
homepage = "https://github.com/txels/ddt";
|
2022-08-12 12:06:08 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|