mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 08:33:54 +00:00
07538cfddf
Probabilistic data structures https://github.com/barrust/pyprobables
43 lines
839 B
Nix
43 lines
839 B
Nix
{ 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 ];
|
|
};
|
|
}
|