diff --git a/pkgs/development/python-modules/pybloom-live/default.nix b/pkgs/development/python-modules/pybloom-live/default.nix new file mode 100644 index 00000000000..0499350a7c8 --- /dev/null +++ b/pkgs/development/python-modules/pybloom-live/default.nix @@ -0,0 +1,49 @@ +{ lib +, bitarray +, buildPythonPackage +, fetchPypi +, pytestCheckHook +, pythonOlder +, setuptools +, wheel +, xxhash +}: + +buildPythonPackage rec { + pname = "pybloom-live"; + version = "4.0.0"; + pyproject = true; + + disabled = pythonOlder "3.7"; + + src = fetchPypi { + pname = "pybloom_live"; + inherit version; + hash = "sha256-mVRcXTsFvTiLVJHja4I7cGgwpoa6GLTBkGPQjeUyERA="; + }; + + nativeBuildInputs = [ + setuptools + wheel + ]; + + propagatedBuildInputs = [ + bitarray + xxhash + ]; + + nativeCheckInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ + "pybloom_live" + ]; + + meta = with lib; { + description = "A Probabilistic data structure"; + homepage = "https://github.com/joseph-fox/python-bloomfilter"; + license = licenses.mit; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 4503e963576..4f66709fe21 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8927,6 +8927,8 @@ self: super: with self; { pyblackbird = callPackage ../development/python-modules/pyblackbird { }; + pybloom-live = callPackage ../development/python-modules/pybloom-live { }; + pybluez = callPackage ../development/python-modules/pybluez { inherit (pkgs) bluez; };