summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/pybloom-live/default.nix
blob: bfa42af32e5bcd0b0e67a6ca546a728bf489c1af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{
  lib,
  bitarray,
  buildPythonPackage,
  fetchPypi,
  pytestCheckHook,
  setuptools,
  wheel,
  xxhash,
}:

buildPythonPackage rec {
  pname = "pybloom-live";
  version = "4.0.0";
  pyproject = true;

  src = fetchPypi {
    pname = "pybloom_live";
    inherit version;
    hash = "sha256-mVRcXTsFvTiLVJHja4I7cGgwpoa6GLTBkGPQjeUyERA=";
  };

  nativeBuildInputs = [
    setuptools
    wheel
  ];

  propagatedBuildInputs = [
    bitarray
    xxhash
  ];

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "pybloom_live" ];

  meta = {
    description = "Probabilistic data structure";
    homepage = "https://github.com/joseph-fox/python-bloomfilter";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ fab ];
  };
}