2022-04-27 09:35:20 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pythonOlder
|
|
|
|
|
|
|
|
# propagates
|
|
|
|
, 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-02-09 11:40:11 +00:00
|
|
|
, typing-extensions
|
2022-04-27 09:35:20 +00:00
|
|
|
|
|
|
|
# tests
|
|
|
|
, numpy
|
|
|
|
, pytestCheckHook
|
2022-02-10 20:34:41 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2023-02-16 17:41:37 +00:00
|
|
|
version = "8.2.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "approvaltests";
|
2022-04-27 09:35:20 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
2023-02-09 11:40:11 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# no tests included in PyPI tarball
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "approvals";
|
|
|
|
repo = "ApprovalTests.Python";
|
2022-04-27 09:35:20 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-02-16 17:41:37 +00:00
|
|
|
hash = "sha256-7OeFOPBOs+SXKOQGKxiigVvoY50+bqRo+oDbVYTMQxU=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
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-02-09 11:40:11 +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
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# tests expects paths below ApprovalTests.Python directory
|
|
|
|
"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";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.marsam ];
|
|
|
|
};
|
|
|
|
}
|