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, pythonOlder
14, scikit-learn
15, scipy
16, setuptools
17, setuptools-scm
18, wheel
19}:
20
21buildPythonPackage rec {
22 pname = "recordlinkage";
23 version = "0.16";
24 format = "pyproject";
25
26 disabled = pythonOlder "3.8";
27
28 src = fetchPypi {
29 inherit pname version;
30 hash = "sha256-7NoMEN/xOLFwaBXeMysShfZwrn6MzpJZYhNQHVieaqQ=";
31 };
32
33 nativeBuildInputs = [
34 setuptools
35 setuptools-scm
36 wheel
37 ];
38
39 propagatedBuildInputs = [
40 pyarrow
41 jellyfish
42 numpy
43 pandas
44 scipy
45 scikit-learn
46 joblib
47 networkx
48 bottleneck
49 numexpr
50 ];
51
52 # pytestCheckHook does not work
53 # Reusing their CI setup which involves 'rm -rf recordlinkage' in preCheck phase do not work too.
54 nativeCheckInputs = [
55 pytest
56 ];
57
58 pythonImportsCheck = [
59 "recordlinkage"
60 ];
61
62 meta = with lib; {
63 description = "Library to link records in or between data sources";
64 homepage = "https://recordlinkage.readthedocs.io/";
65 changelog = "https://github.com/J535D165/recordlinkage/releases/tag/v${version}";
66 license = licenses.bsd3;
67 maintainers = with maintainers; [ raitobezarius ];
68 };
69}