686ce24904
GitOrigin-RevId: ac1f5b72a9e95873d1de0233fddcb56f99884b37
69 lines
1.3 KiB
Nix
69 lines
1.3 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pythonOlder
|
|
|
|
# propagates
|
|
, allpairspy
|
|
, approval-utilities
|
|
, beautifulsoup4
|
|
, empty-files
|
|
, mrjob
|
|
, pyperclip
|
|
, pytest
|
|
, typing-extensions
|
|
|
|
# tests
|
|
, numpy
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
version = "8.2.0";
|
|
pname = "approvaltests";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
# no tests included in PyPI tarball
|
|
src = fetchFromGitHub {
|
|
owner = "approvals";
|
|
repo = "ApprovalTests.Python";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-7OeFOPBOs+SXKOQGKxiigVvoY50+bqRo+oDbVYTMQxU=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
allpairspy
|
|
approval-utilities
|
|
beautifulsoup4
|
|
empty-files
|
|
mrjob
|
|
pyperclip
|
|
pytest
|
|
typing-extensions
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
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"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Assertion/verification library to aid testing";
|
|
homepage = "https://github.com/approvals/ApprovalTests.Python";
|
|
license = licenses.asl20;
|
|
maintainers = [ maintainers.marsam ];
|
|
};
|
|
}
|