nixpkgs/pkgs/development/python-modules/recordlinkage/default.nix
Martin Weinelt 0215034f25 python3.pkgs: Migrate fetchers to use hash
when they already rely on SRI hashes.
2023-03-03 23:59:29 +01:00

54 lines
1,002 B
Nix

{ lib
, bottleneck
, buildPythonPackage
, fetchPypi
, jellyfish
, joblib
, networkx
, numexpr
, numpy
, pandas
, pyarrow
, pytest
, scikit-learn
, scipy
, pythonOlder
}:
buildPythonPackage rec {
pname = "recordlinkage";
version = "0.15";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-aIrx54vnf85I/Kit/4njg/VIOu6H0SE7NdQ1GbeP8Cc=";
};
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/";
license = licenses.bsd3;
maintainers = [ maintainers.raitobezarius ];
};
}