2018-10-16 19:23:30 +02:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2018-11-25 12:57:31 +01:00
|
|
|
, nose, six, pyyaml, mock
|
2018-10-16 19:23:30 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ddt";
|
2019-04-16 19:15:35 +02:00
|
|
|
version = "1.2.1";
|
2018-10-16 19:23:30 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-04-16 19:15:35 +02:00
|
|
|
sha256 = "d13e6af8f36238e89d00f4ebccf2bda4f6d1878be560a6600689e42077e164e3";
|
2018-10-16 19:23:30 +02:00
|
|
|
};
|
|
|
|
|
2018-11-25 12:57:31 +01:00
|
|
|
checkInputs = [ nose six pyyaml mock ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
nosetests -s
|
|
|
|
'';
|
|
|
|
|
2018-10-16 19:23:30 +02: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;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|