1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-17 19:21:04 +00:00

python312Packages.prox-tv: drop nose dependency

This commit is contained in:
Sigmanificient 2024-07-28 19:57:09 +02:00
parent 6668b98f28
commit 10c865e804

View file

@ -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";