Skip to content

Commit

Permalink
python312Packages.prox-tv: drop nose dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
Sigmanificient committed Jul 29, 2024
1 parent 6668b98 commit 10c865e
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions pkgs/development/python-modules/prox-tv/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,16 @@
buildPythonPackage,
cffi,
fetchFromGitHub,
nose,
setuptools,
pytestCheckHook,
numpy,
stdenv,
}:

buildPythonPackage {
pname = "prox-tv";
version = "3.3.0";
format = "setuptools";
pyproject = true;

src = fetchFromGitHub {
owner = "albarji";
Expand All @@ -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";
Expand Down

0 comments on commit 10c865e

Please sign in to comment.