blob: b74533e0d44b97a263faaf14aba0d522225fa344 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
{ lib, buildPythonPackage, fetchFromGitHub
, beautifulsoup4
, empty-files
, numpy
, pyperclip
, pytest
}:
buildPythonPackage rec {
version = "3.6.0";
pname = "approvaltests";
# no tests included in PyPI tarball
src = fetchFromGitHub {
owner = "approvals";
repo = "ApprovalTests.Python";
rev = "v${version}";
sha256 = "sha256-pgGuIoYV6JRM9h7hR8IeNduqsGm+UrKq+P/T1LM30NE=";
};
propagatedBuildInputs = [
beautifulsoup4
empty-files
numpy
pyperclip
pytest
];
postPatch = ''
substituteInPlace setup.py \
--replace bs4 beautifulsoup4 \
--replace "pyperclip==1.5.27" "pyperclip>=1.5.27"
'';
meta = with lib; {
description = "Assertion/verification library to aid testing";
homepage = "https://github.com/approvals/ApprovalTests.Python";
license = licenses.asl20;
maintainers = [ maintainers.marsam ];
};
}
|