1{ lib 2, blas 3, lapack 4, buildPythonPackage 5, cffi 6, fetchFromGitHub 7, nose 8, numpy 9, stdenv 10}: 11 12buildPythonPackage { 13 pname = "prox-tv"; 14 version = "3.3.0"; 15 16 src = fetchFromGitHub { 17 owner = "albarji"; 18 repo = "proxTV"; 19 rev = "e621585d5aaa7983fbee68583f7deae995d3bafb"; 20 sha256 = "0mlrjbb5rw78dgijkr3bspmsskk6jqs9y7xpsgs35i46dvb327q5"; 21 }; 22 23 checkInputs = [ 24 nose 25 ]; 26 27 propagatedBuildInputs = [ 28 numpy 29 cffi 30 ]; 31 32 # this test is known to fail on darwin 33 checkPhase = '' 34 nosetests --exclude=test_tvp_1d ${lib.optionalString stdenv.isDarwin " --exclude=test_tv2_1d"} 35 ''; 36 37 propagatedNativeBuildInputs = [ cffi ]; 38 39 buildInputs = [ blas lapack ]; 40 41 enableParallelBuilding = true; 42 43 meta = with lib; { 44 homepage = "https://github.com/albarji/proxTV"; 45 description = "A toolbox for fast Total Variation proximity operators"; 46 license = licenses.bsd2; 47 maintainers = with maintainers; [ multun ]; 48 }; 49}