mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-14 08:26:37 +01:00
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
48 lines
871 B
Nix
48 lines
871 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 = {
|
|
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 = lib.licenses.mit;
|
|
};
|
|
}
|