2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
allpairspy,
|
|
|
|
approval-utilities,
|
|
|
|
beautifulsoup4,
|
|
|
|
buildPythonPackage,
|
|
|
|
empty-files,
|
|
|
|
fetchFromGitHub,
|
|
|
|
mock,
|
|
|
|
mrjob,
|
|
|
|
numpy,
|
|
|
|
pyperclip,
|
|
|
|
pytest,
|
|
|
|
pytest-asyncio,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
|
|
|
testfixtures,
|
|
|
|
typing-extensions,
|
2022-02-10 20:34:41 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "approvaltests";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "14.0.0";
|
2024-01-02 11:29:13 +00:00
|
|
|
pyproject = true;
|
2022-04-27 09:35:20 +00:00
|
|
|
|
2024-02-07 01:22:34 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "approvals";
|
|
|
|
repo = "ApprovalTests.Python";
|
2022-04-27 09:35:20 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-BTTmmtmFjYBfzbVf/Fi8PwnpVJBcOOBTdFBmGowGez4=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
build-system = [ setuptools ];
|
2024-01-02 11:29:13 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
dependencies = [
|
2022-04-27 09:35:20 +00:00
|
|
|
allpairspy
|
2023-02-09 11:40:11 +00:00
|
|
|
approval-utilities
|
2022-02-10 20:34:41 +00:00
|
|
|
beautifulsoup4
|
|
|
|
empty-files
|
2024-01-25 14:12:00 +00:00
|
|
|
mock
|
2023-02-09 11:40:11 +00:00
|
|
|
mrjob
|
2022-02-10 20:34:41 +00:00
|
|
|
pyperclip
|
|
|
|
pytest
|
2023-10-09 19:29:22 +00:00
|
|
|
testfixtures
|
2024-04-21 15:54:59 +00:00
|
|
|
typing-extensions
|
2022-02-10 20:34:41 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-04-27 09:35:20 +00:00
|
|
|
numpy
|
2024-01-02 11:29:13 +00:00
|
|
|
pytest-asyncio
|
2022-04-27 09:35:20 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
2024-04-21 15:54:59 +00:00
|
|
|
# Tests expect paths below ApprovalTests.Python directory
|
2022-04-27 09:35:20 +00:00
|
|
|
"test_received_filename"
|
|
|
|
"test_pytest_namer"
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"approvaltests.approvals"
|
|
|
|
"approvaltests.reporters.generic_diff_reporter_factory"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Assertion/verification library to aid testing";
|
|
|
|
homepage = "https://github.com/approvals/ApprovalTests.Python";
|
2023-10-09 19:29:22 +00:00
|
|
|
changelog = "https://github.com/approvals/ApprovalTests.Python/releases/tag/v${version}";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.asl20;
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|