at master 962 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 isPy3k, 6 numpy, 7 scipy, 8 matplotlib, 9 pytestCheckHook, 10}: 11 12buildPythonPackage rec { 13 pname = "nimfa"; 14 version = "1.4.0"; 15 format = "setuptools"; 16 setuptools = true; 17 18 src = fetchPypi { 19 inherit pname version; 20 hash = "sha256-Oc/yuGhW0Dyoo9nDhZgDTs8adowyX9OnKLuerbjGuRk="; 21 }; 22 23 dependencies = [ 24 numpy 25 scipy 26 ]; 27 28 nativeCheckInputs = [ 29 matplotlib 30 pytestCheckHook 31 ]; 32 33 postPatch = '' 34 substituteInPlace setup.py \ 35 --replace-fail "import imp" "" \ 36 --replace-fail "os.path.exists('.git')" "True" \ 37 --replace-fail "GIT_REVISION = git_version()" "GIT_REVISION = 'v${version}'" 38 ''; 39 40 doCheck = !isPy3k; # https://github.com/marinkaz/nimfa/issues/42 41 42 meta = { 43 description = "Nonnegative matrix factorization library"; 44 homepage = "http://nimfa.biolab.si"; 45 license = lib.licenses.bsd3; 46 maintainers = with lib.maintainers; [ ashgillman ]; 47 }; 48}