Files
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

75 lines
1.2 KiB
Nix

{
lib,
fetchPypi,
buildPythonPackage,
pythonOlder,
# build-system
hatchling,
# dependencies
async-timeout,
deprecated,
packaging,
typing-extensions,
# extras: hiredis
hiredis,
# extras: ocsp
cryptography,
pyopenssl,
requests,
}:
buildPythonPackage rec {
pname = "redis";
version = "6.2.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-6CHxKbdd3my5ndNeXHboxJUSpaDY39xWCy+9RLhcqXc=";
};
build-system = [ hatchling ];
dependencies = [
async-timeout
deprecated
packaging
typing-extensions
];
optional-dependencies = {
hiredis = [ hiredis ];
ocsp = [
cryptography
pyopenssl
requests
];
};
pythonImportsCheck = [
"redis"
"redis.client"
"redis.cluster"
"redis.connection"
"redis.exceptions"
"redis.sentinel"
"redis.utils"
];
# Tests require a running redis
doCheck = false;
meta = {
description = "Python client for Redis key-value store";
homepage = "https://github.com/redis/redis-py";
changelog = "https://github.com/redis/redis-py/releases/tag/v${version}";
license = with lib.licenses; [ mit ];
};
}