2018-01-16 09:55:56 +01:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2018-01-17 01:56:19 +01:00
|
|
|
, isPy3k
|
2018-01-16 09:55:56 +01:00
|
|
|
, numpy
|
|
|
|
, scipy
|
|
|
|
, matplotlib
|
|
|
|
, pytest
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "nimfa";
|
2018-01-17 01:57:35 +01:00
|
|
|
version = "1.3.2";
|
2018-01-16 09:55:56 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-01-17 01:57:35 +01:00
|
|
|
sha256 = "0iqcrr48jwy7nh8g13xf4rvpw9wq5qs3hyd6gqlh30mgyn9i85w7";
|
2018-01-16 09:55:56 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ numpy scipy ];
|
2018-01-17 01:56:19 +01:00
|
|
|
checkInputs = [ matplotlib pytest ];
|
|
|
|
doCheck = !isPy3k; # https://github.com/marinkaz/nimfa/issues/42
|
2018-01-16 09:55:56 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Nonnegative matrix factorization library";
|
|
|
|
homepage = "http://nimfa.biolab.si";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ ashgillman ];
|
|
|
|
};
|
|
|
|
}
|