1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 pythonOlder,
7 setuptools,
8}:
9
10buildPythonPackage rec {
11 pname = "pyprobables";
12 version = "0.6.0";
13 pyproject = true;
14
15 disabled = pythonOlder "3.8";
16
17 src = fetchFromGitHub {
18 owner = "barrust";
19 repo = "pyprobables";
20 rev = "refs/tags/v${version}";
21 hash = "sha256-maikrZlBzhv35zPXmKqdJzAz6eZDmluLUvkOkaPTCDU=";
22 };
23
24 nativeBuildInputs = [ setuptools ];
25
26 nativeCheckInputs = [ pytestCheckHook ];
27
28 pythonImportsCheck = [ "probables" ];
29
30 meta = with lib; {
31 description = "Probabilistic data structures";
32 homepage = "https://github.com/barrust/pyprobables";
33 changelog = "https://github.com/barrust/pyprobables/blob/${version}/CHANGELOG.md";
34 license = licenses.mit;
35 maintainers = with maintainers; [ fab ];
36 };
37}