67 lines
1.2 KiB
Nix
67 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
bottleneck,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
jellyfish,
|
|
joblib,
|
|
networkx,
|
|
numexpr,
|
|
numpy,
|
|
pandas,
|
|
pyarrow,
|
|
pytest,
|
|
pythonOlder,
|
|
scikit-learn,
|
|
scipy,
|
|
setuptools,
|
|
setuptools-scm,
|
|
wheel,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "recordlinkage";
|
|
version = "0.16";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-7NoMEN/xOLFwaBXeMysShfZwrn6MzpJZYhNQHVieaqQ=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
setuptools-scm
|
|
wheel
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
pyarrow
|
|
jellyfish
|
|
numpy
|
|
pandas
|
|
scipy
|
|
scikit-learn
|
|
joblib
|
|
networkx
|
|
bottleneck
|
|
numexpr
|
|
];
|
|
|
|
# pytestCheckHook does not work
|
|
# Reusing their CI setup which involves 'rm -rf recordlinkage' in preCheck phase do not work too.
|
|
nativeCheckInputs = [ pytest ];
|
|
|
|
pythonImportsCheck = [ "recordlinkage" ];
|
|
|
|
meta = with lib; {
|
|
description = "Library to link records in or between data sources";
|
|
homepage = "https://recordlinkage.readthedocs.io/";
|
|
changelog = "https://github.com/J535D165/recordlinkage/releases/tag/v${version}";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ raitobezarius ];
|
|
};
|
|
}
|