python3Packages.approvaltests: fix src, build, update deps

This commit is contained in:
Jonathan Ringer
2022-02-04 14:50:29 -08:00
parent 3d7809b56c
commit 6e39d6a2e7
@@ -1,21 +1,34 @@
{ lib, buildPythonPackage, fetchFromGitHub, pyperclip }:
{ lib, buildPythonPackage, fetchFromGitHub
, beautifulsoup4
, empty-files
, numpy
, pyperclip
, pytest
}:
buildPythonPackage rec {
version = "3.3.2";
version = "3.5.0";
pname = "approvaltests";
# no tests included in PyPI tarball
src = fetchFromGitHub {
owner = "approvals";
repo = "ApprovalTests.Python";
rev = version;
rev = "v${version}";
sha256 = "15blwjzd6nwh0kzxa9xxscxdn0vqwb1bax8d46wk01dcywdyd6ni";
};
propagatedBuildInputs = [ pyperclip ];
propagatedBuildInputs = [
beautifulsoup4
empty-files
numpy
pyperclip
pytest
];
postPatch = ''
substituteInPlace setup.py \
--replace bs4 beautifulsoup4 \
--replace "pyperclip==1.5.27" "pyperclip>=1.5.27"
'';