pythonPackages.click-default-group: fix tests
Also use pytestCheckHook and pythonImportsCheck.
This commit is contained in:
parent
02a329cd7d
commit
a2d58534e0
1 changed files with 18 additions and 2 deletions
|
@ -1,4 +1,10 @@
|
||||||
{ lib, buildPythonPackage, fetchFromGitHub, click, pytest }:
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, fetchpatch
|
||||||
|
, click
|
||||||
|
, pytestCheckHook
|
||||||
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "click-default-group";
|
pname = "click-default-group";
|
||||||
|
@ -12,9 +18,19 @@ buildPythonPackage rec {
|
||||||
sha256 = "0nk39lmkn208w8kvq6f4h3a6qzxrrvxixahpips6ik3zflbkss86";
|
sha256 = "0nk39lmkn208w8kvq6f4h3a6qzxrrvxixahpips6ik3zflbkss86";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
# make tests compatible with click 8
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://github.com/click-contrib/click-default-group/commit/9415c77d05cf7d16876e7d70a49a41a6189983b4.patch";
|
||||||
|
sha256 = "1czzma8nmwyxhwhnr8rfw5bjw6d46b3s5r5bfb8ly3sjwqjlwhw2";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [ click ];
|
propagatedBuildInputs = [ click ];
|
||||||
|
|
||||||
checkInputs = [ pytest ];
|
checkInputs = [ pytestCheckHook ];
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "click_default_group" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/click-contrib/click-default-group";
|
homepage = "https://github.com/click-contrib/click-default-group";
|
||||||
|
|
Loading…
Reference in a new issue