From 25719e3db867e8d0aa78ea6193672a0adfe18520 Mon Sep 17 00:00:00 2001 From: Jonathan Ringer Date: Mon, 8 Jun 2020 13:22:10 -0700 Subject: [PATCH] python3Packages.nix-prefetch-github: fix tests --- .../nix-prefetch-github/default.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/pkgs/development/python-modules/nix-prefetch-github/default.nix b/pkgs/development/python-modules/nix-prefetch-github/default.nix index 56387835cc6e..fbcaa1d1dc45 100644 --- a/pkgs/development/python-modules/nix-prefetch-github/default.nix +++ b/pkgs/development/python-modules/nix-prefetch-github/default.nix @@ -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";