python3Packages.pyhacrf-datamade: init at 0.2.8-unstable-2025-05-16

This commit is contained in:
Daniel Fahey
2025-10-27 00:06:29 +00:00
parent d3edbad75f
commit 2ba14e65cb
2 changed files with 73 additions and 0 deletions
@@ -0,0 +1,71 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
unstableGitUpdater,
# build-system
cython,
numpy,
setuptools,
# dependencies
dedupe-pylbfgs,
# tests
pytestCheckHook,
}:
buildPythonPackage {
pname = "pyhacrf-datamade";
# Tagged release requested upstream in https://github.com/dedupeio/pyhacrf/issues/57
version = "0.2.8-unstable-2025-05-16";
pyproject = true;
# NOTE: This is a fork of dirko/pyhacrf maintained by dedupeio
src = fetchFromGitHub {
owner = "dedupeio";
repo = "pyhacrf";
rev = "899aa6c2c48e5afe8fb40727ffd6070e4ba71c31";
hash = "sha256-MVkOChDblu7A/ve51SYqO7lNoTXwh37bHjnZd+NvzK0=";
};
build-system = [
cython
numpy
setuptools
];
dependencies = [
dedupe-pylbfgs
numpy
];
nativeCheckInputs = [
pytestCheckHook
];
# Change to temp directory so pytest imports from installed package in $out, not source
preCheck = ''
export TEST_DIR=$(mktemp -d)
cp -r pyhacrf/tests $TEST_DIR/
pushd $TEST_DIR
'';
postCheck = ''
popd
'';
pythonImportsCheck = [
"pyhacrf"
];
passthru.updateScript = unstableGitUpdater { };
meta = {
description = "Hidden alignment conditional random field for classifying string pairs";
homepage = "https://github.com/dedupeio/pyhacrf";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ daniel-fahey ];
};
}
+2
View File
@@ -13187,6 +13187,8 @@ self: super: with self; {
pygtrie = callPackage ../development/python-modules/pygtrie { };
pyhacrf-datamade = callPackage ../development/python-modules/pyhacrf-datamade { };
pyhamcrest = callPackage ../development/python-modules/pyhamcrest { };
pyhanko = callPackage ../development/python-modules/pyhanko { };