mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 01:43:15 +00:00
python3Packages.coredis: init at 4.14.0
This commit is contained in:
parent
7efa5777e2
commit
513dbe59be
59
pkgs/development/python-modules/coredis/default.nix
Normal file
59
pkgs/development/python-modules/coredis/default.nix
Normal file
@ -0,0 +1,59 @@
|
||||
{ lib
|
||||
, fetchFromGitHub
|
||||
, buildPythonPackage
|
||||
, async-timeout
|
||||
, deprecated
|
||||
, pympler
|
||||
, wrapt
|
||||
, pytestCheckHook
|
||||
, redis
|
||||
, pytest-asyncio
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "coredis";
|
||||
version = "4.14.0";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "alisaifee";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
hash = "sha256-pHCQ5dePk2VhYNf/Ka+sovIn2OAVYHnLQhPFVjKmgb4=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pytest.ini --replace "-K" ""
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
async-timeout
|
||||
deprecated
|
||||
pympler
|
||||
wrapt
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "coredis" ];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
redis
|
||||
pytest-asyncio
|
||||
];
|
||||
|
||||
# all other tests require docker
|
||||
pytestFlagsArray = [
|
||||
"tests/test_lru_cache.py"
|
||||
"tests/test_parsers.py"
|
||||
"tests/test_retry.py"
|
||||
"tests/test_utils.py"
|
||||
];
|
||||
|
||||
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";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ netali ];
|
||||
};
|
||||
}
|
@ -2175,6 +2175,8 @@ self: super: with self; {
|
||||
|
||||
coreapi = callPackage ../development/python-modules/coreapi { };
|
||||
|
||||
coredis = callPackage ../development/python-modules/coredis { };
|
||||
|
||||
coreschema = callPackage ../development/python-modules/coreschema { };
|
||||
|
||||
cornice = callPackage ../development/python-modules/cornice { };
|
||||
|
Loading…
Reference in New Issue
Block a user