Merge pull request #211974 from fabaff/yfinance-fix

python310Packages.parameterized: switch to pytestCheckHook
This commit is contained in:
Fabian Affolter 2023-01-22 09:46:07 +01:00 committed by GitHub
commit 84ee05209d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,39 +1,50 @@
{ lib
, buildPythonPackage
, fetchPypi
, glibcLocales
, isPy3k
, mock
, nose
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "parameterized";
version = "0.8.1";
disable = !isPy3k;
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-Qbv/N9YYZDD3f5ANd35btqJJKKHEb7HeaS+LUriDO1w=";
hash = "sha256-Qbv/N9YYZDD3f5ANd35btqJJKKHEb7HeaS+LUriDO1w=";
};
nativeCheckInputs = [
nose
checkInputs = [
mock
glibcLocales
nose
pytestCheckHook
];
checkPhase = ''
runHook preCheck
LC_ALL="en_US.UTF-8" nosetests -v
runHook postCheck
'';
pytestFlagsArray = [
"parameterized/test.py"
];
pythonImportsCheck = [ "parameterized" ];
disabledTests = [
# Tests seem outdated
"test_method"
"test_with_docstring_0_value1"
"test_with_docstring_1_v_l_"
"testCamelCaseMethodC"
];
pythonImportsCheck = [
"parameterized"
];
meta = with lib; {
description = "Parameterized testing with any Python test framework";
homepage = "https://github.com/wolever/parameterized";
changelog = "https://github.com/wolever/parameterized/blob/v${version}/CHANGELOG.txt";
license = licenses.bsd2;
maintainers = with maintainers; [ ];
};