2021-03-26 10:23:32 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, glibcLocales
|
|
|
|
, isPy3k
|
|
|
|
, mock
|
|
|
|
, nose
|
|
|
|
}:
|
2018-02-04 12:39:24 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "parameterized";
|
2021-03-26 10:23:32 +00:00
|
|
|
version = "0.8.1";
|
|
|
|
disable = !isPy3k;
|
2018-02-04 12:39:24 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-03-26 10:23:32 +00:00
|
|
|
sha256 = "sha256-Qbv/N9YYZDD3f5ANd35btqJJKKHEb7HeaS+LUriDO1w=";
|
2018-02-04 12:39:24 +00:00
|
|
|
};
|
|
|
|
|
2021-03-26 10:23:32 +00:00
|
|
|
checkInputs = [
|
|
|
|
nose
|
|
|
|
mock
|
|
|
|
glibcLocales
|
|
|
|
];
|
2018-02-04 12:39:24 +00:00
|
|
|
|
|
|
|
checkPhase = ''
|
2021-03-26 10:23:32 +00:00
|
|
|
runHook preCheck
|
2018-02-04 12:39:24 +00:00
|
|
|
LC_ALL="en_US.UTF-8" nosetests -v
|
2021-03-26 10:23:32 +00:00
|
|
|
runHook postCheck
|
2018-02-04 12:39:24 +00:00
|
|
|
'';
|
|
|
|
|
2021-03-26 10:23:32 +00:00
|
|
|
pythonImportsCheck = [ "parameterized" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-02-04 12:39:24 +00:00
|
|
|
description = "Parameterized testing with any Python test framework";
|
2021-03-26 10:23:32 +00:00
|
|
|
homepage = "https://github.com/wolever/parameterized";
|
|
|
|
license = licenses.bsd2;
|
2018-02-04 12:39:24 +00:00
|
|
|
maintainers = with maintainers; [ ma27 ];
|
|
|
|
};
|
|
|
|
}
|