2022-04-27 09:35:20 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pythonOlder
|
|
|
|
|
|
|
|
# propagates
|
|
|
|
, allpairspy
|
2022-02-10 20:34:41 +00:00
|
|
|
, beautifulsoup4
|
|
|
|
, empty-files
|
|
|
|
, pyperclip
|
|
|
|
, pytest
|
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 {
|
2022-08-21 13:32:41 +00:00
|
|
|
version = "5.4.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "approvaltests";
|
2022-04-27 09:35:20 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6.1";
|
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}";
|
2022-08-21 13:32:41 +00:00
|
|
|
sha256 = "sha256-ZXtIM3McpfDFCaedlbJ6SU+Er5NyfI8kGnrn7sb1V5M=";
|
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
|
2022-02-10 20:34:41 +00:00
|
|
|
beautifulsoup4
|
|
|
|
empty-files
|
|
|
|
pyperclip
|
|
|
|
pytest
|
|
|
|
];
|
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 ];
|
|
|
|
};
|
|
|
|
}
|