python3Packages.nix-prefetch-github: fix tests
This commit is contained in:
parent
cc6e701b33
commit
25719e3db8
@ -1,10 +1,16 @@
|
|||||||
{ fetchPypi
|
{ fetchPypi
|
||||||
, lib
|
, lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
|
, pythonOlder
|
||||||
, attrs
|
, attrs
|
||||||
, click
|
, click
|
||||||
, effect
|
, effect
|
||||||
, jinja2
|
, jinja2
|
||||||
|
, git
|
||||||
|
, pytestCheckHook
|
||||||
|
, pytest-black
|
||||||
|
, pytestcov
|
||||||
|
, pytest-isort
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
@ -27,6 +33,15 @@ buildPythonPackage rec {
|
|||||||
jinja2
|
jinja2
|
||||||
];
|
];
|
||||||
|
|
||||||
|
checkInputs = [ pytestCheckHook pytest-black pytestcov pytest-isort git ];
|
||||||
|
|
||||||
|
# aiohttp is not supported on 3.8 yet
|
||||||
|
doCheck = pythonOlder "3.8";
|
||||||
|
|
||||||
|
# latest version of isort will cause tests to fail
|
||||||
|
# ignore tests which are impure
|
||||||
|
disabledTests = [ "isort" "life" "outputs" "fetch_submodules" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Prefetch sources from github";
|
description = "Prefetch sources from github";
|
||||||
homepage = "https://github.com/seppeljordan/nix-prefetch-github";
|
homepage = "https://github.com/seppeljordan/nix-prefetch-github";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user