mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-30 00:34:00 +00:00
Merge pull request #211974 from fabaff/yfinance-fix
python310Packages.parameterized: switch to pytestCheckHook
This commit is contained in:
commit
84ee05209d
@ -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; [ ];
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user