uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
39
pkgs/development/python-modules/pymanopt/default.nix
Normal file
39
pkgs/development/python-modules/pymanopt/default.nix
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
{ lib
|
||||
, fetchFromGitHub
|
||||
, buildPythonPackage
|
||||
, numpy
|
||||
, scipy
|
||||
, autograd
|
||||
, nose2
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pymanopt";
|
||||
version = "0.2.5";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = pname;
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "0zk775v281375sangc5qkwrkb8yc9wx1g8b1917s4s8wszzkp8k6";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ numpy scipy ];
|
||||
checkInputs = [ nose2 autograd ];
|
||||
|
||||
checkPhase = ''
|
||||
# nose2 doesn't properly support excludes
|
||||
rm tests/test_{problem,tensorflow,theano}.py
|
||||
|
||||
nose2 tests -v
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [ "pymanopt" ];
|
||||
|
||||
meta = {
|
||||
description = "Python toolbox for optimization on Riemannian manifolds with support for automatic differentiation";
|
||||
homepage = "https://www.pymanopt.org/";
|
||||
license = lib.licenses.bsd3;
|
||||
maintainers = with lib.maintainers; [ yl3dy ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue