Skip to content

Commit

Permalink
python312Packages.nimfa: fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
Bot-wxt1221 committed Dec 8, 2024
1 parent d88cb59 commit b44f376
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions pkgs/development/python-modules/nimfa/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,33 +6,42 @@
numpy,
scipy,
matplotlib,
pytest,
pytestCheckHook,
}:

buildPythonPackage rec {
pname = "nimfa";
version = "1.4.0";
format = "setuptools";
setuptools = true;

src = fetchPypi {
inherit pname version;
sha256 = "39cff2b86856d03ca8a3d9c38598034ecf1a768c325fd3a728bb9eadb8c6b919";
hash = "sha256-Oc/yuGhW0Dyoo9nDhZgDTs8adowyX9OnKLuerbjGuRk=";
};

propagatedBuildInputs = [
dependencies = [
numpy
scipy
];

nativeCheckInputs = [
matplotlib
pytest
pytestCheckHook
];

postPatch = ''
substituteInPlace setup.py \
--replace-fail "import imp" "" \
--replace-fail "os.path.exists('.git')" "True" \
--replace-fail "GIT_REVISION = git_version()" "GIT_REVISION = 'v${version}'"
'';

doCheck = !isPy3k; # https://github.com/marinkaz/nimfa/issues/42

meta = with lib; {
meta = {
description = "Nonnegative matrix factorization library";
homepage = "http://nimfa.biolab.si";
license = licenses.bsd3;
maintainers = with maintainers; [ ashgillman ];
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ ashgillman ];
};
}

0 comments on commit b44f376

Please sign in to comment.