5ca88bfbb9
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
48 lines
877 B
Nix
48 lines
877 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
pythonOlder,
|
|
|
|
# build-system
|
|
setuptools,
|
|
|
|
# tests
|
|
aiounittest,
|
|
mock,
|
|
pytestCheckHook,
|
|
pyyaml,
|
|
six,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ddt";
|
|
version = "1.7.2";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-0hXWsIOWMBPEoZseTc1qlugOQ6t3UZWXpqz88umj4Es=";
|
|
};
|
|
|
|
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 = [ ];
|
|
license = licenses.mit;
|
|
};
|
|
}
|