Unverified Commit 84f49c57 authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

Merge pull request #253074 from fabaff/recordlinkage-fix

python311Packages.recordlinkage: add nativeBuildInputs
parents 276e0e59 c846af67
Loading
Loading
Loading
Loading
+17 −4
Original line number Diff line number Diff line
@@ -10,9 +10,11 @@
, pandas
, pyarrow
, pytest
, pythonOlder
, scikit-learn
, scipy
, pythonOlder
, setuptools
, setuptools-scm
}:

buildPythonPackage rec {
@@ -21,11 +23,17 @@ buildPythonPackage rec {
  format = "pyproject";

  disabled = pythonOlder "3.8";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-7NoMEN/xOLFwaBXeMysShfZwrn6MzpJZYhNQHVieaqQ=";
  };

  nativeBuildInputs = [
    setuptools
    setuptools-scm
  ];

  propagatedBuildInputs = [
    pyarrow
    jellyfish
@@ -41,14 +49,19 @@ buildPythonPackage rec {

  # pytestCheckHook does not work
  # Reusing their CI setup which involves 'rm -rf recordlinkage' in preCheck phase do not work too.
  nativeCheckInputs = [ pytest ];
  nativeCheckInputs = [
    pytest
  ];

  pythonImportsCheck = [ "recordlinkage" ];
  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 = [ maintainers.raitobezarius ];
    maintainers = with maintainers; [ raitobezarius ];
  };
}