Unverified Commit 612cc229 authored by Emily's avatar Emily Committed by GitHub
Browse files

Merge pull request #330699 from Sigmanificient/prox-tv

python312Packages.prox-tv: drop nose dependency
parents abb8d553 10c865e8
Loading
Loading
Loading
Loading
+11 −11
Original line number Diff line number Diff line
@@ -5,7 +5,8 @@
  buildPythonPackage,
  cffi,
  fetchFromGitHub,
  nose,
  setuptools,
  pytestCheckHook,
  numpy,
  stdenv,
}:
@@ -13,7 +14,7 @@
buildPythonPackage {
  pname = "prox-tv";
  version = "3.3.0";
  format = "setuptools";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "albarji";
@@ -22,27 +23,26 @@ buildPythonPackage {
    sha256 = "0mlrjbb5rw78dgijkr3bspmsskk6jqs9y7xpsgs35i46dvb327q5";
  };

  nativeCheckInputs = [ nose ];
  build-system = [ setuptools ];

  propagatedBuildInputs = [
  dependencies = [
    numpy
    cffi
  ];

  # this test is known to fail on darwin
  checkPhase = ''
    nosetests --exclude=test_tvp_1d ${lib.optionalString stdenv.isDarwin " --exclude=test_tv2_1d"}
  '';

  propagatedNativeBuildInputs = [ cffi ];

  buildInputs = [
    blas
    lapack
  ];

  propagatedNativeBuildInputs = [ cffi ];

  enableParallelBuilding = true;

  nativeCheckInputs = [ pytestCheckHook ];

  disabledTests = [ "test_tvp_1d" ] ++ lib.optionals stdenv.isDarwin [ "test_tv2_1d" ];

  meta = with lib; {
    homepage = "https://github.com/albarji/proxTV";
    description = "Toolbox for fast Total Variation proximity operators";