depot/third_party/nixpkgs/pkgs/development/python-modules/approvaltests/default.nix
Default email 792b51d22f Project import generated by Copybara.
GitOrigin-RevId: d5f237872975e6fb6f76eef1368b5634ffcd266f
2022-02-20 05:27:41 +00:00

41 lines
893 B
Nix

{ 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 ];
};
}