nixpkgs/pkgs/development/python-modules/recordlinkage/default.nix
2023-09-03 09:49:06 +02:00

68 lines
1.2 KiB
Nix

{ lib
, bottleneck
, buildPythonPackage
, fetchPypi
, jellyfish
, joblib
, networkx
, numexpr
, numpy
, pandas
, pyarrow
, pytest
, pythonOlder
, scikit-learn
, scipy
, setuptools
, setuptools-scm
}:
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
];
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 ];
};
}