2022-04-27 09:35:20 +00:00
|
|
|
{ lib
|
|
|
|
, allpairspy
|
2023-02-09 11:40:11 +00:00
|
|
|
, approval-utilities
|
2022-02-10 20:34:41 +00:00
|
|
|
, beautifulsoup4
|
2023-10-09 19:29:22 +00:00
|
|
|
, buildPythonPackage
|
2022-02-10 20:34:41 +00:00
|
|
|
, empty-files
|
2023-10-09 19:29:22 +00:00
|
|
|
, fetchFromGitHub
|
2023-02-09 11:40:11 +00:00
|
|
|
, mrjob
|
2023-10-09 19:29:22 +00:00
|
|
|
, numpy
|
2022-02-10 20:34:41 +00:00
|
|
|
, pyperclip
|
|
|
|
, pytest
|
2024-01-02 11:29:13 +00:00
|
|
|
, pytest-asyncio
|
2022-04-27 09:35:20 +00:00
|
|
|
, pytestCheckHook
|
2023-10-09 19:29:22 +00:00
|
|
|
, pythonOlder
|
2024-01-02 11:29:13 +00:00
|
|
|
, setuptools
|
2023-10-09 19:29:22 +00:00
|
|
|
, testfixtures
|
2022-02-10 20:34:41 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "approvaltests";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "10.2.0";
|
|
|
|
pyproject = true;
|
2022-04-27 09:35:20 +00:00
|
|
|
|
2023-02-09 11:40:11 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
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-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-2NaqqgrHXJovoVExvbr0s86eRbcxy+DUrsdRH/vak3E=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
propagatedBuildInputs = [
|
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
|
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
|
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-01-02 11:29:13 +00:00
|
|
|
"test_docstrings"
|
2023-10-09 19:29:22 +00:00
|
|
|
# Tests expects 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;
|
2023-10-09 19:29:22 +00:00
|
|
|
maintainers = with maintainers; [ marsam ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|