Files
nixpkgs/pkgs/development/python-modules/pyroaring/default.nix
Wolfgang Walther c283f32d29 treewide: remove unused with
Auto-fixed by nixf-diagnose.
2025-10-05 10:50:41 +02:00

48 lines
945 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
cython,
setuptools,
hypothesis,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "pyroaring";
version = "1.0.2";
pyproject = true;
src = fetchFromGitHub {
owner = "Ezibenroc";
repo = "PyRoaringBitMap";
tag = version;
hash = "sha256-g+xpQ2DuVn8b0DiIOY69QOH6iwOYHG4bltX1zbDemdI=";
};
postPatch = ''
substituteInPlace setup.py \
--replace-fail "cython>=3.0.2,<3.1.0" "cython"
'';
build-system = [
cython
setuptools
];
pythonImportsCheck = [ "pyroaring" ];
nativeCheckInputs = [
hypothesis
pytestCheckHook
];
meta = {
description = "Python library for handling efficiently sorted integer sets";
homepage = "https://github.com/Ezibenroc/PyRoaringBitMap";
changelog = "https://github.com/Ezibenroc/PyRoaringBitMap/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = [ ];
};
}