at 25.11-pre 937 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 setuptools = true; 16 17 src = fetchPypi { 18 inherit pname version; 19 hash = "sha256-Oc/yuGhW0Dyoo9nDhZgDTs8adowyX9OnKLuerbjGuRk="; 20 }; 21 22 dependencies = [ 23 numpy 24 scipy 25 ]; 26 27 nativeCheckInputs = [ 28 matplotlib 29 pytestCheckHook 30 ]; 31 32 postPatch = '' 33 substituteInPlace setup.py \ 34 --replace-fail "import imp" "" \ 35 --replace-fail "os.path.exists('.git')" "True" \ 36 --replace-fail "GIT_REVISION = git_version()" "GIT_REVISION = 'v${version}'" 37 ''; 38 39 doCheck = !isPy3k; # https://github.com/marinkaz/nimfa/issues/42 40 41 meta = { 42 description = "Nonnegative matrix factorization library"; 43 homepage = "http://nimfa.biolab.si"; 44 license = lib.licenses.bsd3; 45 maintainers = with lib.maintainers; [ ashgillman ]; 46 }; 47}