python3Packages.pydivsufsort: init at 0.0.20

This commit is contained in:
Jared Baur
2026-02-02 16:56:17 -08:00
parent 729e60c063
commit ab6e76f394
2 changed files with 47 additions and 0 deletions
@@ -0,0 +1,45 @@
{
buildPythonPackage,
cmake,
cython,
fetchPypi,
lib,
numpy,
setuptools,
}:
buildPythonPackage (finalAttrs: {
pname = "pydivsufsort";
version = "0.0.20";
pyproject = true;
# The repo hosted on github does not have tags, so we use fetchPypi, though
# we should replace with fetchFromGitHub when we have
# https://github.com/louisabraham/pydivsufsort/issues/52
src = fetchPypi {
inherit (finalAttrs) pname version;
hash = "sha256-aFpXkfrl4gDOi3pOXVFbYVP/3nF1MxvQ34GkIRCK1N8=";
};
postPatch = ''
substituteInPlace setup.py --replace-fail /bin/bash bash
patchShebangs build.sh
'';
nativeBuildInputs = [ cmake ];
dontUseCmakeConfigure = true;
build-system = [ setuptools ];
dependencies = [
cython
numpy
];
meta = {
description = "Bindings to `libdivsufsort`";
homepage = "https://github.com/louisabraham/pydivsufsort";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.jmbaur ];
};
})
+2
View File
@@ -13354,6 +13354,8 @@ self: super: with self; {
pydispatcher = callPackage ../development/python-modules/pydispatcher { };
pydivsufsort = callPackage ../development/python-modules/pydivsufsort { };
pydle = callPackage ../development/python-modules/pydle { };
pydmd = callPackage ../development/python-modules/pydmd { };