diff --git a/pkgs/development/python-modules/recordlinkage/default.nix b/pkgs/development/python-modules/recordlinkage/default.nix new file mode 100644 index 000000000000..b717d8a4c5b5 --- /dev/null +++ b/pkgs/development/python-modules/recordlinkage/default.nix @@ -0,0 +1,53 @@ +{ 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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 51100fb611a7..a4400479294b 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8837,6 +8837,8 @@ in { recommonmark = callPackage ../development/python-modules/recommonmark { }; + recordlinkage = callPackage ../development/python-modules/recordlinkage { }; + redbaron = callPackage ../development/python-modules/redbaron { }; redis = callPackage ../development/python-modules/redis { };