From d811ab7309095082553d6f8b1130e23306e992df Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 9 Mar 2021 00:23:34 +0100 Subject: [PATCH] python3Packages.fakeredis: init at 1.4.5 --- .../python-modules/fakeredis/default.nix | 51 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 4 +- 2 files changed, 54 insertions(+), 1 deletion(-) create mode 100644 pkgs/development/python-modules/fakeredis/default.nix diff --git a/pkgs/development/python-modules/fakeredis/default.nix b/pkgs/development/python-modules/fakeredis/default.nix new file mode 100644 index 00000000000..8513c168cfd --- /dev/null +++ b/pkgs/development/python-modules/fakeredis/default.nix @@ -0,0 +1,51 @@ +{ lib +, aioredis +, async_generator +, buildPythonPackage +, fetchPypi +, hypothesis +, lupa +, pytest-asyncio +, pytest-mock +, pytestCheckHook +, pythonOlder +, redis +, six +, sortedcontainers +}: + +buildPythonPackage rec { + pname = "fakeredis"; + version = "1.4.5"; + disabled = pythonOlder "3.5"; + + src = fetchPypi { + inherit pname version; + sha256 = "0slb23zxn47a4z8b7jq7gq40g4zsn52y9h29zdqs29b85394gjq1"; + }; + + propagatedBuildInputs = [ + aioredis + lupa + redis + six + sortedcontainers + ]; + + checkInputs = [ + async_generator + hypothesis + pytest-asyncio + pytest-mock + pytestCheckHook + ]; + + pythonImportsCheck = [ "fakeredis" ]; + + meta = with lib; { + description = "Fake implementation of Redis API"; + homepage = "https://github.com/jamesls/fakeredis"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 13ac7af41ae..7799b6356b3 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2213,9 +2213,11 @@ in { fake_factory = callPackage ../development/python-modules/fake_factory { }; + fake-useragent = callPackage ../development/python-modules/fake-useragent { }; + faker = callPackage ../development/python-modules/faker { }; - fake-useragent = callPackage ../development/python-modules/fake-useragent { }; + fakeredis = callPackage ../development/python-modules/fakeredis { }; falcon = callPackage ../development/python-modules/falcon { };