1{
2 lib,
3 bitarray,
4 buildPythonPackage,
5 fetchPypi,
6 pytestCheckHook,
7 pythonOlder,
8 setuptools,
9 wheel,
10 xxhash,
11}:
12
13buildPythonPackage rec {
14 pname = "pybloom-live";
15 version = "4.0.0";
16 pyproject = true;
17
18 disabled = pythonOlder "3.7";
19
20 src = fetchPypi {
21 pname = "pybloom_live";
22 inherit version;
23 hash = "sha256-mVRcXTsFvTiLVJHja4I7cGgwpoa6GLTBkGPQjeUyERA=";
24 };
25
26 nativeBuildInputs = [
27 setuptools
28 wheel
29 ];
30
31 propagatedBuildInputs = [
32 bitarray
33 xxhash
34 ];
35
36 nativeCheckInputs = [ pytestCheckHook ];
37
38 pythonImportsCheck = [ "pybloom_live" ];
39
40 meta = with lib; {
41 description = "Probabilistic data structure";
42 homepage = "https://github.com/joseph-fox/python-bloomfilter";
43 license = licenses.mit;
44 maintainers = with maintainers; [ fab ];
45 };
46}