nixpkgs/pkgs/development/python-modules/approvaltests/default.nix

42 lines
894 B
Nix

{ lib, buildPythonPackage, fetchFromGitHub
, beautifulsoup4
, empty-files
, numpy
, pyperclip
, pytest
}:
buildPythonPackage rec {
version = "3.5.0";
pname = "approvaltests";
# no tests included in PyPI tarball
src = fetchFromGitHub {
owner = "approvals";
repo = "ApprovalTests.Python";
rev = "v${version}";
sha256 = "15blwjzd6nwh0kzxa9xxscxdn0vqwb1bax8d46wk01dcywdyd6ni";
};
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 ];
};
}