blob: a12c3f7f4f6e93f30c2dab2cff4a3f1c43724f21 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
{ lib
, buildPythonPackage
, fetchPypi
, future
, numpy
, pytest
}:
buildPythonPackage rec {
pname = "mdp";
version = "3.6";
src = fetchPypi {
pname = "MDP";
inherit version;
sha256 = "ac52a652ccbaed1857ff1209862f03bf9b06d093b12606fb410787da3aa65a0e";
};
propagatedBuildInputs = [ future numpy ];
nativeCheckInputs = [ 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 ];
};
}
|