mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-19 18:44:13 +00:00
python3Packages.redis: add missing deps, set up extra-requires
This commit is contained in:
parent
477044d6ad
commit
6c4fb1151e
@ -4,11 +4,18 @@
|
||||
, pythonOlder
|
||||
|
||||
# propagates
|
||||
, cryptography
|
||||
, async-timeout
|
||||
, deprecated
|
||||
, hiredis
|
||||
, importlib-metadata
|
||||
, packaging
|
||||
, typing-extensions
|
||||
|
||||
# extras: hiredis
|
||||
, hiredis
|
||||
|
||||
# extras: ocsp
|
||||
, cryptography
|
||||
, pyopenssl
|
||||
, requests
|
||||
}:
|
||||
|
||||
@ -25,15 +32,25 @@ buildPythonPackage rec {
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
cryptography
|
||||
async-timeout
|
||||
deprecated
|
||||
hiredis
|
||||
packaging
|
||||
requests
|
||||
typing-extensions
|
||||
] ++ lib.optionals (pythonOlder "3.8") [
|
||||
importlib-metadata
|
||||
];
|
||||
|
||||
passthru.extras-require = {
|
||||
hidredis = [
|
||||
hiredis
|
||||
];
|
||||
ocsp = [
|
||||
cryptography
|
||||
pyopenssl
|
||||
requests
|
||||
];
|
||||
};
|
||||
|
||||
pythonImportsCheck = [
|
||||
"redis"
|
||||
"redis.client"
|
||||
|
Loading…
Reference in New Issue
Block a user