python3Packages.approvaltests: fix src, build, update deps
This commit is contained in:
@@ -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"
|
||||
'';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user