mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-14 15:36:47 +03:00
Merge pull request #270313 from dotlambda/approval-utilities-10.1.0
python311Packages.approvaltests: 10.0.0 -> 10.1.0
This commit is contained in:
commit
0cdca0b108
@ -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
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user