nixpkgs/pkgs/development/python-modules/ddt/default.nix
Ihar Hrachyshka 567e8dfd8e
treewide: clean up 'meta = with' pattern
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>
2025-12-10 18:09:49 +01:00

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;
};
}