From d304cba853264c2037cc3122bd36a99506cb2f52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?AutoMath=C3=AFs?= Date: Sun, 18 Aug 2024 11:31:10 +0200 Subject: [PATCH 1/2] maintainers: add automathis --- maintainers/maintainer-list.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 04f5f6785c423..9da1550a41535 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -2004,6 +2004,12 @@ githubId = 354741; name = "Austin Butler"; }; + automathis = { + name = "AutoMathïs"; + email = "automathis@protonmail.com"; + github = "MathisFederico"; + githubId = 60117466; + }; autophagy = { email = "mail@autophagy.io"; github = "autophagy"; From b8393db284317016fe547fd713f7f5639af9e3f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?AutoMath=C3=AFs?= Date: Sun, 18 Aug 2024 11:39:56 +0200 Subject: [PATCH 2/2] python3Packages.hebg: init at 0.2.4 Co-authored-by: OTABI Tomoya --- .../python-modules/hebg/default.nix | 56 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 58 insertions(+) create mode 100644 pkgs/development/python-modules/hebg/default.nix diff --git a/pkgs/development/python-modules/hebg/default.nix b/pkgs/development/python-modules/hebg/default.nix new file mode 100644 index 0000000000000..5bf209fe7a7ba --- /dev/null +++ b/pkgs/development/python-modules/hebg/default.nix @@ -0,0 +1,56 @@ +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + + # Runtime dependencies + networkx, + matplotlib, + numpy, + tqdm, + scipy, + + # Build, dev and test dependencies + setuptools-scm, + pytestCheckHook, + pytest-check, + pytest-mock, +}: + +buildPythonPackage rec { + pname = "hebg"; + version = "0.2.4"; + pyproject = true; + + src = fetchPypi { + inherit pname version; + hash = "sha256-11bz+FbnaEVLiXT1eujMw8lvABlzVOeROOsdVgsyfjQ="; + }; + + build-system = [ setuptools-scm ]; + + dependencies = [ + networkx + matplotlib + numpy + tqdm + scipy + ]; + + nativeCheckInputs = [ + pytestCheckHook + pytest-check + pytest-mock + ]; + env = lib.optionalAttrs stdenv.hostPlatform.isDarwin { MPLBACKEND = "Agg"; }; + pythonImportsCheck = [ "hebg" ]; + + meta = { + description = "Hierachical Explainable Behaviors using Graphs"; + homepage = "https://github.com/IRLL/HEB_graphs"; + changelog = "https://github.com/IRLL/HEB_graphs/releases/tag/${version}"; + license = lib.licenses.gpl3Only; + maintainers = with lib.maintainers; [ automathis ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 7b0200329f870..ec74c2ceb3063 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5537,6 +5537,8 @@ self: super: with self; { heatzypy = callPackage ../development/python-modules/heatzypy { }; + hebg = callPackage ../development/python-modules/hebg { }; + help2man = callPackage ../development/python-modules/help2man { }; helpdev = callPackage ../development/python-modules/helpdev { };