Unverified Commit 3d9520d1 authored by Weijia Wang's avatar Weijia Wang Committed by GitHub
Browse files

Merge pull request #233993 from wegank/scikit-misc-fix

python311Packages.scikit-misc: 0.1.4 -> 0.2.0
parents 9affd374 0de704a2
Loading
Loading
Loading
Loading
+17 −11
Original line number Diff line number Diff line
@@ -3,35 +3,41 @@
, buildPythonPackage
, cython
, gfortran
, pytestCheckHook
, numpy }:
, git
, meson-python
, pkg-config
, numpy
, openblas
}:

buildPythonPackage rec {
  pname = "scikit-misc";
  version = "0.1.4";
  version = "0.2.0";
  format = "pyproject";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-93RqA0eBEGPh7PkSHflINXhQA5U8OLW6hPY/xQjCKRE=";
    pname = "scikit_misc";
    inherit version;
    hash = "sha256-rBTdTpNeRC/DSrHFg7ZhHUYD0G9IgoqFx+A+LCxYK7w=";
  };

  postPatch = ''
    substituteInPlace pytest.ini \
      --replace "--cov --cov-report=xml" ""
    patchShebangs .
  '';

  nativeBuildInputs = [
    cython
    gfortran
    git
    meson-python
    pkg-config
  ];

  buildInputs = [
    cython
    numpy
    openblas
  ];

  # Tests fail because of infinite recursion error
  doCheck = false;

  pythonImportsCheck = [
    "skmisc"
  ];