From 07538cfddf00780802f0780f1fae6e805deeccfe Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 16 Feb 2024 08:52:22 +0100 Subject: python311Packages.pyprobables: init at 0.6.0 Probabilistic data structures https://github.com/barrust/pyprobables --- .../python-modules/pyprobables/default.nix | 42 ++++++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 44 insertions(+) create mode 100644 pkgs/development/python-modules/pyprobables/default.nix diff --git a/pkgs/development/python-modules/pyprobables/default.nix b/pkgs/development/python-modules/pyprobables/default.nix new file mode 100644 index 000000000000..be4410cce276 --- /dev/null +++ b/pkgs/development/python-modules/pyprobables/default.nix @@ -0,0 +1,42 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, pytestCheckHook +, pythonOlder +, setuptools +}: + +buildPythonPackage rec { + pname = "pyprobables"; + version = "0.6.0"; + pyproject = true; + + disabled = pythonOlder "3.8"; + + src = fetchFromGitHub { + owner = "barrust"; + repo = "pyprobables"; + rev = "refs/tags/v${version}"; + hash = "sha256-maikrZlBzhv35zPXmKqdJzAz6eZDmluLUvkOkaPTCDU="; + }; + + nativeBuildInputs = [ + setuptools + ]; + + nativeCheckInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ + "probables" + ]; + + meta = with lib; { + description = "Probabilistic data structures"; + homepage = "https://github.com/barrust/pyprobables"; + changelog = "https://github.com/barrust/pyprobables/blob/${version}/CHANGELOG.md"; + license = licenses.mit; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 71d7fc931e7b..6d27dd918abf 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -9327,6 +9327,8 @@ self: super: with self; { pyprecice = callPackage ../development/python-modules/pyprecice { }; + pyprobables = callPackage ../development/python-modules/pyprobables { }; + pyproject-api = callPackage ../development/python-modules/pyproject-api { }; pyproject-hooks = callPackage ../development/python-modules/pyproject-hooks { }; -- cgit 1.4.1