2022-02-10 20:34:41 +00:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub
|
|
|
|
, beautifulsoup4
|
|
|
|
, empty-files
|
|
|
|
, numpy
|
|
|
|
, pyperclip
|
|
|
|
, pytest
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2022-02-20 05:27:41 +00:00
|
|
|
version = "3.6.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "approvaltests";
|
|
|
|
|
|
|
|
# no tests included in PyPI tarball
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "approvals";
|
|
|
|
repo = "ApprovalTests.Python";
|
2022-02-10 20:34:41 +00:00
|
|
|
rev = "v${version}";
|
2022-02-20 05:27:41 +00:00
|
|
|
sha256 = "sha256-pgGuIoYV6JRM9h7hR8IeNduqsGm+UrKq+P/T1LM30NE=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
beautifulsoup4
|
|
|
|
empty-files
|
|
|
|
numpy
|
|
|
|
pyperclip
|
|
|
|
pytest
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
2022-02-10 20:34:41 +00:00
|
|
|
--replace bs4 beautifulsoup4 \
|
2020-04-24 23:36:52 +00:00
|
|
|
--replace "pyperclip==1.5.27" "pyperclip>=1.5.27"
|
|
|
|
'';
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|