mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
python3Packages.approvaltests: 4.0.0 -> 5.0.0
This commit is contained in:
parent
c0ea8f066e
commit
5eb123c365
1 changed files with 32 additions and 10 deletions
|
@ -1,36 +1,58 @@
|
|||
{ lib, buildPythonPackage, fetchFromGitHub
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pythonOlder
|
||||
|
||||
# propagates
|
||||
, allpairspy
|
||||
, beautifulsoup4
|
||||
, empty-files
|
||||
, numpy
|
||||
, pyperclip
|
||||
, pytest
|
||||
|
||||
# tests
|
||||
, numpy
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "4.0.0";
|
||||
version = "5.0.0";
|
||||
pname = "approvaltests";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.6.1";
|
||||
|
||||
# no tests included in PyPI tarball
|
||||
src = fetchFromGitHub {
|
||||
owner = "approvals";
|
||||
repo = "ApprovalTests.Python";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-4dg5xTswqLFRBaZagKrkilCvsAnky9donb03MT/PiWM=";
|
||||
sha256 = "sha256-ku8J1ccX6LZZitlAOgc3eNCdsFx/FP1nqtdgPJF/jRg=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
allpairspy
|
||||
beautifulsoup4
|
||||
empty-files
|
||||
numpy
|
||||
pyperclip
|
||||
pytest
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace bs4 beautifulsoup4 \
|
||||
--replace "pyperclip==1.5.27" "pyperclip>=1.5.27"
|
||||
'';
|
||||
checkInputs = [
|
||||
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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue