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
|
2024-01-25 14:12:00 +00:00
|
|
|
, mock
|
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
|
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
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "approvaltests";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "11.2.1";
|
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-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-oG1TH9F8IYDZWLuL2TIesNuZQVzGQRqkGk502HTG+O8=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
build-system = [
|
2024-01-02 11:29:13 +00:00
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
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-05-15 15:35:15 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|