1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-21 00:49:27 +03:00
nixpkgs/pkgs/development/python-modules/redis/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

56 lines
971 B
Nix
Raw Normal View History

2021-12-29 02:43:40 +01:00
{ lib
, fetchPypi
, buildPythonPackage
, pythonOlder
# propagates
, cryptography
, deprecated
, hiredis
, importlib-metadata
, packaging
, requests
}:
2019-08-01 11:55:36 -07:00
2017-09-28 14:00:01 +02:00
buildPythonPackage rec {
pname = "redis";
2021-12-29 02:43:40 +01:00
version = "4.1.0";
format = "setuptools";
disabled = pythonOlder "3.6";
2017-09-28 14:00:01 +02:00
src = fetchPypi {
inherit pname version;
2021-12-29 02:43:40 +01:00
sha256 = "sha256-IfCiO85weQkHbmuizgdsulm/9g0qsily4GR/32IP/kc=";
2017-09-28 14:00:01 +02:00
};
2021-12-29 02:43:40 +01:00
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"
];
2017-09-28 14:00:01 +02:00
# tests require a running redis
doCheck = false;
2019-08-01 11:55:36 -07:00
meta = with lib; {
2017-09-28 14:00:01 +02:00
description = "Python client for Redis key-value store";
homepage = "https://pypi.python.org/pypi/redis/";
2019-08-01 11:55:36 -07:00
license = with licenses; [ mit ];
2017-09-28 14:00:01 +02:00
};
}