2021-01-25 09:26:54 +01:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, isPy37, pyperclip }:
|
2018-12-08 19:38:56 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2019-10-17 10:13:50 +02:00
|
|
|
version = "0.2.6";
|
2018-12-08 19:38:56 +01:00
|
|
|
pname = "approvaltests";
|
|
|
|
|
|
|
|
# no tests included in PyPI tarball
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "approvals";
|
|
|
|
repo = "ApprovalTests.Python";
|
|
|
|
rev = version;
|
2019-10-17 10:13:50 +02:00
|
|
|
sha256 = "1k1bj8q1qm89a8xm4az6qk4qswwmgxw5jpdjcxmf93zh5hrcy9h9";
|
2018-12-08 19:38:56 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ pyperclip ];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "pyperclip==1.5.27" "pyperclip>=1.5.27"
|
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2018-12-08 19:38:56 +01:00
|
|
|
description = "Assertion/verification library to aid testing";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/approvals/ApprovalTests.Python";
|
2018-12-08 19:38:56 +01:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.marsam ];
|
|
|
|
};
|
|
|
|
}
|