pythonPackages.prox-tv: init at 3.3.0
This commit is contained in:
committed by
Frederik Rietdijk
parent
0acac5cb45
commit
f85aff5a22
50
pkgs/development/python-modules/prox-tv/default.nix
Normal file
50
pkgs/development/python-modules/prox-tv/default.nix
Normal file
@@ -0,0 +1,50 @@
|
||||
{ lib
|
||||
, blas
|
||||
, buildPythonPackage
|
||||
, cffi
|
||||
, fetchFromGitHub
|
||||
, liblapack
|
||||
, nose
|
||||
, numpy
|
||||
, openblas
|
||||
, useOpenblas ? true
|
||||
}:
|
||||
|
||||
buildPythonPackage {
|
||||
pname = "prox-tv";
|
||||
version = "3.3.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "albarji";
|
||||
repo = "proxTV";
|
||||
rev = "e621585d5aaa7983fbee68583f7deae995d3bafb";
|
||||
sha256 = "0mlrjbb5rw78dgijkr3bspmsskk6jqs9y7xpsgs35i46dvb327q5";
|
||||
};
|
||||
|
||||
patches = lib.optional useOpenblas ./use-openblas.patch;
|
||||
|
||||
checkInputs = [
|
||||
nose
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
numpy
|
||||
cffi
|
||||
];
|
||||
|
||||
buildInputs = (
|
||||
if useOpenblas then
|
||||
[ openblas ]
|
||||
else
|
||||
[ blas liblapack ]
|
||||
);
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
meta = with lib; {
|
||||
homepage = https://github.com/albarji/proxTV;
|
||||
description = "A toolbox for fast Total Variation proximity operators";
|
||||
license = licenses.bsd2;
|
||||
maintainers = with maintainers; [ multun ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user