Merge pull request #270313 from dotlambda/approval-utilities-10.1.0

python311Packages.approvaltests: 10.0.0 -> 10.1.0
This commit is contained in:
OTABI Tomoya 2023-12-03 16:25:09 +09:00 committed by GitHub
commit 0cdca0b108
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 23 additions and 8 deletions

View File

@ -2,18 +2,29 @@
, buildPythonPackage
, approvaltests
, pythonOlder
, setuptools
, typing-extensions
}:
buildPythonPackage rec {
pname = "approval-utilities";
inherit (approvaltests) version src;
disabled = pythonOlder "3.7";
format = "setuptools";
pyproject = true;
postPatch = ''
mv setup.approval_utilities.py setup.py
'';
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
# used in approval_utilities/utilities/time_utilities.py
typing-extensions
];
pythonImportsCheck = [ "approval_utilities" ];
# upstream has no tests

View File

@ -5,21 +5,21 @@
, buildPythonPackage
, empty-files
, fetchFromGitHub
, mock
, mrjob
, numpy
, pyperclip
, pytest
, pytest-asyncio
, pytestCheckHook
, pythonOlder
, setuptools
, testfixtures
, typing-extensions
}:
buildPythonPackage rec {
pname = "approvaltests";
version = "10.0.0";
format = "setuptools";
version = "10.1.0";
pyproject = true;
disabled = pythonOlder "3.7";
@ -27,9 +27,13 @@ buildPythonPackage rec {
owner = "approvals";
repo = "ApprovalTests.Python";
rev = "refs/tags/v${version}";
hash = "sha256-3KorHpJUeWSJKVN/4IN0AqKOIL0sT5MaxkvQqpeilhw=";
hash = "sha256-t+Vxo6Pn3b2H3yAg5LGsGTjrZr4MXeGOY2BF9eFFAdE=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
allpairspy
approval-utilities
@ -39,16 +43,16 @@ buildPythonPackage rec {
pyperclip
pytest
testfixtures
typing-extensions
];
nativeCheckInputs = [
mock
numpy
pytest-asyncio
pytestCheckHook
];
disabledTests = [
"test_docstrings"
# Tests expects paths below ApprovalTests.Python directory
"test_received_filename"
"test_pytest_namer"