python3Packages.nix-prefetch-github: fix tests

This commit is contained in:
Jonathan Ringer 2020-06-08 13:22:10 -07:00 committed by Frederik Rietdijk
parent cc6e701b33
commit 25719e3db8

View file

@ -1,10 +1,16 @@
{ fetchPypi
, lib
, buildPythonPackage
, pythonOlder
, attrs
, click
, effect
, jinja2
, git
, pytestCheckHook
, pytest-black
, pytestcov
, pytest-isort
}:
buildPythonPackage rec {
@ -27,6 +33,15 @@ buildPythonPackage rec {
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; {
description = "Prefetch sources from github";
homepage = "https://github.com/seppeljordan/nix-prefetch-github";