2021-12-06 16:07:01 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, future
|
|
|
|
, numpy
|
|
|
|
, pytest
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "MDP";
|
2020-06-15 15:56:04 +00:00
|
|
|
version = "3.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-15 15:56:04 +00:00
|
|
|
sha256 = "ac52a652ccbaed1857ff1209862f03bf9b06d093b12606fb410787da3aa65a0e";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ future numpy ];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ pytest ];
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Library for building complex data processing software by combining widely used machine learning algorithms";
|
2023-02-22 10:55:15 +00:00
|
|
|
homepage = "https://mdp-toolkit.sourceforge.net";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ nico202 ];
|
|
|
|
};
|
|
|
|
}
|