1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/python-modules/pytest-click/default.nix
2019-04-12 10:02:22 -04:00

41 lines
764 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytest
, click
, pytestcov
, isPy27
, mock
}:
buildPythonPackage rec {
pname = "pytest-click";
version = "0.3";
src = fetchFromGitHub {
owner = "Stranger6667";
repo = "pytest-click";
rev = version;
sha256 = "1cd15anw8d4rq6qs03j6ag38199rqw7vp0w0w0fm41mvdzr0lwvz";
};
postConfigure = ''
substituteInPlace setup.py \
--replace "mock==1.0.1" "mock"
'';
propagatedBuildInputs = [
pytest
click
];
checkInputs = [ pytestcov ] ++ lib.optionals isPy27 [ mock ];
meta = with lib; {
description = "pytest plugin for click";
homepage = https://github.com/Stranger6667/pytest-click;
license = licenses.mit;
maintainers = [ maintainers.costrouc ];
};
}