53 lines
998 B
Nix
53 lines
998 B
Nix
{ lib
|
|
, bottleneck
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, jellyfish
|
|
, joblib
|
|
, networkx
|
|
, numexpr
|
|
, numpy
|
|
, pandas
|
|
, pyarrow
|
|
, pytest
|
|
, scikit-learn
|
|
, scipy
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "recordlinkage";
|
|
version = "0.14";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-kuY2MUuwaLb228kwkJmOnnU+OolZcvGlhKTTiama+T4=";
|
|
};
|
|
|
|
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.
|
|
checkInputs = [ pytest ];
|
|
|
|
pythonImportsCheck = [ "recordlinkage" ];
|
|
|
|
meta = with lib; {
|
|
description = "Library to link records in or between data sources";
|
|
homepage = "https://recordlinkage.readthedocs.io/";
|
|
license = licenses.bsd3;
|
|
maintainers = [ maintainers.raitobezarius ];
|
|
};
|
|
}
|