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
46
pkgs/development/python-modules/mdp/default.nix
Normal file
46
pkgs/development/python-modules/mdp/default.nix
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, future
|
||||
, numpy
|
||||
, pytest
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "MDP";
|
||||
version = "3.6";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "ac52a652ccbaed1857ff1209862f03bf9b06d093b12606fb410787da3aa65a0e";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ future numpy ];
|
||||
|
||||
checkInputs = [ pytest ];
|
||||
|
||||
doCheck = true;
|
||||
|
||||
pythonImportsCheck = [ "mdp" "bimdp" ];
|
||||
|
||||
postPatch = ''
|
||||
# https://github.com/mdp-toolkit/mdp-toolkit/issues/92
|
||||
substituteInPlace mdp/utils/routines.py --replace numx.typeDict numx.sctypeDict
|
||||
'';
|
||||
|
||||
checkPhase = ''
|
||||
runHook preCheck
|
||||
|
||||
pytest --seed 7710873 mdp
|
||||
pytest --seed 7710873 bimdp
|
||||
|
||||
runHook postCheck
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Library for building complex data processing software by combining widely used machine learning algorithms";
|
||||
homepage = "http://mdp-toolkit.sourceforge.net";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ nico202 ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue