depot/third_party/nixpkgs/pkgs/development/python-modules/ddt/default.nix
Default email 02cf88bb76 Project import generated by Copybara.
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
2022-08-12 15:06:08 +03:00

36 lines
748 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, six, pyyaml, mock
, pytestCheckHook
, enum34
, isPy3k
}:
buildPythonPackage rec {
pname = "ddt";
version = "1.5.0";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-2q1rxfx2GeWqfu1sOU4Fv4KUYWChPl3y4m3hdsuvNH4=";
};
propagatedBuildInputs = lib.optionals (!isPy3k) [
enum34
];
checkInputs = [ six pyyaml mock pytestCheckHook ];
preCheck = ''
# pytest can't import one file even with PYTHONPATH set
rm test/test_named_data.py
'';
meta = with lib; {
description = "Data-Driven/Decorated Tests, a library to multiply test cases";
homepage = "https://github.com/txels/ddt";
maintainers = with maintainers; [ ];
license = licenses.mit;
};
}