nixpkgs/pkgs/development/python-modules/mdp/default.nix
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00

47 lines
993 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, future
, numpy
, pytest
}:
buildPythonPackage rec {
pname = "MDP";
version = "3.6";
src = fetchPypi {
inherit pname 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 ];
};
}