1{ lib, buildPythonPackage, fetchFromGitHub, pyperclip }: 2 3buildPythonPackage rec { 4 version = "0.2.6"; 5 pname = "approvaltests"; 6 7 # no tests included in PyPI tarball 8 src = fetchFromGitHub { 9 owner = "approvals"; 10 repo = "ApprovalTests.Python"; 11 rev = version; 12 sha256 = "1k1bj8q1qm89a8xm4az6qk4qswwmgxw5jpdjcxmf93zh5hrcy9h9"; 13 }; 14 15 propagatedBuildInputs = [ pyperclip ]; 16 17 postPatch = '' 18 substituteInPlace setup.py \ 19 --replace "pyperclip==1.5.27" "pyperclip>=1.5.27" 20 ''; 21 22 meta = with lib; { 23 description = "Assertion/verification library to aid testing"; 24 homepage = "https://github.com/approvals/ApprovalTests.Python"; 25 license = licenses.asl20; 26 maintainers = [ maintainers.marsam ]; 27 }; 28}