about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2024-02-16 08:57:04 +0100
committerFabian Affolter <mail@fabian-affolter.ch>2024-02-16 08:57:04 +0100
commit59cc65262f66dd00faaaf1f5d141fe4f775aacf0 (patch)
treec10a767f8505951f3941d99cf2cfee2019118b98
parent07538cfddf00780802f0780f1fae6e805deeccfe (diff)
downloadnixlib-59cc65262f66dd00faaaf1f5d141fe4f775aacf0.tar
nixlib-59cc65262f66dd00faaaf1f5d141fe4f775aacf0.tar.gz
nixlib-59cc65262f66dd00faaaf1f5d141fe4f775aacf0.tar.bz2
nixlib-59cc65262f66dd00faaaf1f5d141fe4f775aacf0.tar.lz
nixlib-59cc65262f66dd00faaaf1f5d141fe4f775aacf0.tar.xz
nixlib-59cc65262f66dd00faaaf1f5d141fe4f775aacf0.tar.zst
nixlib-59cc65262f66dd00faaaf1f5d141fe4f775aacf0.zip
python311Packages.fakeredis: refactor
- fix license (is BSD 3-Clause not MIT)
- add more extra
-rw-r--r--pkgs/development/python-modules/fakeredis/default.nix15
1 files changed, 10 insertions, 5 deletions
diff --git a/pkgs/development/python-modules/fakeredis/default.nix b/pkgs/development/python-modules/fakeredis/default.nix
index 97849371f0cd..df8e34dafffe 100644
--- a/pkgs/development/python-modules/fakeredis/default.nix
+++ b/pkgs/development/python-modules/fakeredis/default.nix
@@ -6,19 +6,19 @@
 , lupa
 , poetry-core
 , pybloom-live
+, pyprobables
 , pytest-asyncio
 , pytest-mock
 , pytestCheckHook
 , pythonOlder
 , redis
-, six
 , sortedcontainers
 }:
 
 buildPythonPackage rec {
   pname = "fakeredis";
   version = "2.21.0";
-  format = "pyproject";
+  pyproject = true;
 
   disabled = pythonOlder "3.7";
 
@@ -35,7 +35,6 @@ buildPythonPackage rec {
 
   propagatedBuildInputs = [
     redis
-    six
     sortedcontainers
   ];
 
@@ -54,7 +53,13 @@ buildPythonPackage rec {
       aioredis
     ];
     bf = [
-      pybloom-live
+      pyprobables
+    ];
+    cf = [
+      pyprobables
+    ];
+    probabilistic = [
+      pyprobables
     ];
   };
 
@@ -66,7 +71,7 @@ buildPythonPackage rec {
     description = "Fake implementation of Redis API";
     homepage = "https://github.com/dsoftwareinc/fakeredis-py";
     changelog = "https://github.com/cunla/fakeredis-py/releases/tag/v${version}";
-    license = with licenses; [ mit ];
+    license = with licenses; [ bsd3 ];
     maintainers = with maintainers; [ fab ];
   };
 }