python3Packages.redis: 3.5.3 -> 4.1.0
This commit is contained in:
parent
b4e398b9ce
commit
c79447275d
@ -1,14 +1,49 @@
|
||||
{ lib, fetchPypi, buildPythonPackage }:
|
||||
{ lib
|
||||
, fetchPypi
|
||||
, buildPythonPackage
|
||||
, pythonOlder
|
||||
|
||||
# propagates
|
||||
, cryptography
|
||||
, deprecated
|
||||
, hiredis
|
||||
, importlib-metadata
|
||||
, packaging
|
||||
, requests
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "redis";
|
||||
version = "3.5.3";
|
||||
version = "4.1.0";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0e7e0cfca8660dea8b7d5cd8c4f6c5e29e11f31158c0b0ae91a397f00e5a05a2";
|
||||
sha256 = "sha256-IfCiO85weQkHbmuizgdsulm/9g0qsily4GR/32IP/kc=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
cryptography
|
||||
deprecated
|
||||
hiredis
|
||||
packaging
|
||||
requests
|
||||
] ++ lib.optionals (pythonOlder "3.8") [
|
||||
importlib-metadata
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"redis"
|
||||
"redis.client"
|
||||
"redis.cluster"
|
||||
"redis.connection"
|
||||
"redis.exceptions"
|
||||
"redis.sentinel"
|
||||
"redis.utils"
|
||||
];
|
||||
|
||||
# tests require a running redis
|
||||
doCheck = false;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user