python3Packages.dedupe-pylbfgs: init at 0.2.0.16
This commit is contained in:
@@ -0,0 +1,59 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
|
||||
# build-system
|
||||
cython,
|
||||
numpy,
|
||||
setuptools,
|
||||
|
||||
# tests
|
||||
pytest-cov-stub,
|
||||
pytestCheckHook,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "dedupe-pylbfgs";
|
||||
version = "0.2.0.16";
|
||||
pyproject = true;
|
||||
|
||||
# NOTE: This is a fork of larsmans/pylbfgs maintained by dedupeio
|
||||
src = fetchFromGitHub {
|
||||
owner = "dedupeio";
|
||||
repo = "pylbfgs";
|
||||
tag = "${version}";
|
||||
hash = "sha256-H416dgZQxyqsnhmlK5keW8cJWY6gea4mebVuP0IEVOU=";
|
||||
};
|
||||
|
||||
build-system = [
|
||||
cython
|
||||
numpy
|
||||
setuptools
|
||||
];
|
||||
|
||||
dependencies = [
|
||||
numpy
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytest-cov-stub
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
# Prevent importing from source during test collection (only $out has compiled extensions)
|
||||
preCheck = ''
|
||||
rm -rf lbfgs
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [
|
||||
"lbfgs"
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Python wrapper for L-BFGS and OWL-QN optimization algorithms";
|
||||
homepage = "https://github.com/dedupeio/pylbfgs";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ daniel-fahey ];
|
||||
};
|
||||
}
|
||||
@@ -3538,6 +3538,8 @@ self: super: with self; {
|
||||
|
||||
dedupe-levenshtein-search = callPackage ../development/python-modules/dedupe-levenshtein-search { };
|
||||
|
||||
dedupe-pylbfgs = callPackage ../development/python-modules/dedupe-pylbfgs { };
|
||||
|
||||
deebot-client = callPackage ../development/python-modules/deebot-client { };
|
||||
|
||||
deemix = callPackage ../development/python-modules/deemix { };
|
||||
|
||||
Reference in New Issue
Block a user