python311Packages.coredis: disable on unsupported Python releases
- update ordering
This commit is contained in:
parent
18afd63036
commit
49acf60d72
@ -1,13 +1,14 @@
|
||||
{ lib
|
||||
, fetchFromGitHub
|
||||
, buildPythonPackage
|
||||
, async-timeout
|
||||
, buildPythonPackage
|
||||
, deprecated
|
||||
, fetchFromGitHub
|
||||
, pympler
|
||||
, wrapt
|
||||
, pytestCheckHook
|
||||
, redis
|
||||
, pytest-asyncio
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, redis
|
||||
, wrapt
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@ -15,15 +16,18 @@ buildPythonPackage rec {
|
||||
version = "4.15.1";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "alisaifee";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-9nojHufUt53Ovoos4gaR7qh1xN8D1+gJOEyFsOndXJU=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pytest.ini --replace "-K" ""
|
||||
substituteInPlace pytest.ini \
|
||||
--replace "-K" ""
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
@ -33,16 +37,18 @@ buildPythonPackage rec {
|
||||
wrapt
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "coredis" ];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
redis
|
||||
pytest-asyncio
|
||||
];
|
||||
|
||||
# all other tests require docker
|
||||
pythonImportsCheck = [
|
||||
"coredis"
|
||||
];
|
||||
|
||||
pytestFlagsArray = [
|
||||
# All other tests require Docker
|
||||
"tests/test_lru_cache.py"
|
||||
"tests/test_parsers.py"
|
||||
"tests/test_retry.py"
|
||||
@ -50,9 +56,9 @@ buildPythonPackage rec {
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
changelog = "https://github.com/alisaifee/coredis/blob/${src.rev}/HISTORY.rst";
|
||||
homepage = "https://github.com/alisaifee/coredis";
|
||||
description = "An async redis client with support for redis server, cluster & sentinel";
|
||||
homepage = "https://github.com/alisaifee/coredis";
|
||||
changelog = "https://github.com/alisaifee/coredis/blob/${src.rev}/HISTORY.rst";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ netali ];
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user