python3.pkgs.cheroot: fix build (#44216)

python3.pkgs.backports_functools_lru_cache is null,
so we cannot require this for python3
This commit is contained in:
Robert Schütz 2018-07-30 07:50:54 +02:00 committed by GitHub
parent bd05e877dc
commit 408bd2b80e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
{ stdenv, fetchPypi, buildPythonPackage { stdenv, fetchPypi, buildPythonPackage, fetchpatch
, more-itertools, six , more-itertools, six
, pytest, pytestcov, portend , pytest, pytestcov, portend
, backports_unittest-mock , backports_unittest-mock
@ -13,9 +13,15 @@ buildPythonPackage rec {
sha256 = "8e3ac15e1efffc81425a693e99b3c09d7ea4bf947255d8d4c38e2cf76f3a4d25"; sha256 = "8e3ac15e1efffc81425a693e99b3c09d7ea4bf947255d8d4c38e2cf76f3a4d25";
}; };
propagatedBuildInputs = [ more-itertools six ]; patches = fetchpatch {
name = "cheroot-fix-setup-python3.patch";
url = "https://git.archlinux.org/svntogit/community.git/plain/trunk/cheroot-fix-setup-python3.patch?h=packages/python-cheroot";
sha256 = "1rlgz0qln536y00mfqlf0i9hz3f53id73wh47cg5q2vcsw1w2bpc";
};
checkInputs = [ pytest pytestcov portend backports_unittest-mock backports_functools_lru_cache ]; propagatedBuildInputs = [ more-itertools six backports_functools_lru_cache ];
checkInputs = [ pytest pytestcov portend backports_unittest-mock ];
# Disable testmon, it needs pytest-testmon, which we do not currently have in nikpkgs, # Disable testmon, it needs pytest-testmon, which we do not currently have in nikpkgs,
# and is only used to skip some tests that are already known to work. # and is only used to skip some tests that are already known to work.