1{ lib
2, bottleneck
3, buildPythonPackage
4, fetchPypi
5, jellyfish
6, joblib
7, networkx
8, numexpr
9, numpy
10, pandas
11, pyarrow
12, pytest
13, scikit-learn
14, scipy
15, pythonOlder
16}:
17
18buildPythonPackage rec {
19 pname = "recordlinkage";
20 version = "0.15";
21
22 disabled = pythonOlder "3.7";
23 src = fetchPypi {
24 inherit pname version;
25 sha256 = "sha256-aIrx54vnf85I/Kit/4njg/VIOu6H0SE7NdQ1GbeP8Cc=";
26 };
27
28 propagatedBuildInputs = [
29 pyarrow
30 jellyfish
31 numpy
32 pandas
33 scipy
34 scikit-learn
35 joblib
36 networkx
37 bottleneck
38 numexpr
39 ];
40
41 # pytestCheckHook does not work
42 # Reusing their CI setup which involves 'rm -rf recordlinkage' in preCheck phase do not work too.
43 checkInputs = [ pytest ];
44
45 pythonImportsCheck = [ "recordlinkage" ];
46
47 meta = with lib; {
48 description = "Library to link records in or between data sources";
49 homepage = "https://recordlinkage.readthedocs.io/";
50 license = licenses.bsd3;
51 maintainers = [ maintainers.raitobezarius ];
52 };
53}