depot/third_party/nixpkgs/pkgs/development/python-modules/ddt/default.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

49 lines
885 B
Nix

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