Merge pull request #140516 from smancill/python-mdp-tests
This commit is contained in:
@@ -1,4 +1,10 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, pytest, future, numpy }:
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, future
|
||||
, numpy
|
||||
, pytest
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "MDP";
|
||||
@@ -9,11 +15,27 @@ buildPythonPackage rec {
|
||||
sha256 = "ac52a652ccbaed1857ff1209862f03bf9b06d093b12606fb410787da3aa65a0e";
|
||||
};
|
||||
|
||||
checkInputs = [ pytest ];
|
||||
propagatedBuildInputs = [ future numpy ];
|
||||
|
||||
# Tests disabled because of missing dependencies not in nix
|
||||
doCheck = false;
|
||||
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";
|
||||
|
||||
Reference in New Issue
Block a user