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