nixpkgs/pkgs/development/python-modules/ddt/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
752 B
Nix
Raw Normal View History

2020-06-07 08:39:17 +00:00
{ lib
, buildPythonPackage
, fetchPypi
2020-06-07 08:39:17 +00:00
, six, pyyaml, mock
, pytestCheckHook
, enum34
, isPy3k
}:
buildPythonPackage rec {
pname = "ddt";
2022-08-11 21:43:45 +00:00
version = "1.6.0";
src = fetchPypi {
inherit pname version;
hash = "sha256-9xs0hzG4x4wxAL/72VGnafvUOQiNH9uzhB7uAZr4Cs0=";
};
2020-06-07 08:39:17 +00:00
propagatedBuildInputs = lib.optionals (!isPy3k) [
enum34
];
2018-11-25 11:57:31 +00:00
nativeCheckInputs = [ six pyyaml mock pytestCheckHook ];
2022-07-16 10:59:04 +00:00
preCheck = ''
# pytest can't import one file even with PYTHONPATH set
rm test/test_named_data.py
'';
2020-06-07 08:39:17 +00:00
meta = with lib; {
description = "Data-Driven/Decorated Tests, a library to multiply test cases";
homepage = "https://github.com/txels/ddt";
2022-07-16 10:59:04 +00:00
maintainers = with maintainers; [ ];
license = licenses.mit;
};
}