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";
|
2018-11-04 10:34:57 +00:00
|
|
|
version = "1.2.0";
|
2018-10-16 18:23:30 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-11-04 10:34:57 +00:00
|
|
|
sha256 = "898364fc34b27981b925171a0011c174c94633cb678eb1fac05fe7a234c7912c";
|
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";
|
|
|
|
homepage = https://github.com/txels/ddt;
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|