2018-10-16 18:23:30 +01:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2018-11-25 11:57:31 +00:00
|
|
|
, nose, six, pyyaml, mock
|
2018-10-16 18:23:30 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ddt";
|
2019-12-10 18:07:38 +00:00
|
|
|
version = "1.2.2";
|
2018-10-16 18:23:30 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-12-10 18:07:38 +00:00
|
|
|
sha256 = "9f79cf234064cf9b43492b72da35c473de3f03163d37bd13cec5bd8d200dda6b";
|
2018-10-16 18:23:30 +01:00
|
|
|
};
|
|
|
|
|
2018-11-25 11:57:31 +00:00
|
|
|
checkInputs = [ nose six pyyaml mock ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
nosetests -s
|
|
|
|
'';
|
|
|
|
|
2018-10-16 18:23:30 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Data-Driven/Decorated Tests, a library to multiply test cases";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/txels/ddt";
|
2018-10-16 18:23:30 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|