From e0931bb74bba27973f6c1a9ad4abbf539b81ea89 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Thu, 18 Dec 2025 21:29:00 +0000 Subject: [PATCH] python3Packages.moocore: init at 0.1.10 --- .../python-modules/moocore/default.nix | 62 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 64 insertions(+) create mode 100644 pkgs/development/python-modules/moocore/default.nix diff --git a/pkgs/development/python-modules/moocore/default.nix b/pkgs/development/python-modules/moocore/default.nix new file mode 100644 index 000000000000..e349a345a300 --- /dev/null +++ b/pkgs/development/python-modules/moocore/default.nix @@ -0,0 +1,62 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + + # build-system + cffi, + setuptools, + + # dependencies + numpy, + platformdirs, + + # tests + pytestCheckHook, + writableTmpDirAsHomeHook, +}: + +buildPythonPackage rec { + pname = "moocore"; + version = "0.1.10"; + pyproject = true; + + src = fetchFromGitHub { + owner = "multi-objective"; + repo = "moocore"; + tag = "v${version}"; + hash = "sha256-ByWQpd2QuagctTeoO5BIyYiI2bSlEPzNht4ciWCCJtM="; + }; + + sourceRoot = "${src.name}/python"; + + build-system = [ + cffi + setuptools + ]; + + dependencies = [ + cffi + numpy + platformdirs + ]; + + pythonImportsCheck = [ "moocore" ]; + + nativeCheckInputs = [ + pytestCheckHook + writableTmpDirAsHomeHook + ]; + + disabledTests = [ + # Require downloading data from the internet + "test_read_datasets_data" + ]; + + meta = { + description = "Core Mathematical Functions for Multi-Objective Optimization"; + homepage = "https://github.com/multi-objective/moocore/tree/main/python"; + license = lib.licenses.lgpl21Plus; + maintainers = with lib.maintainers; [ GaetanLepage ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index d5b47cbd5970..60ed5af5a8a2 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -9914,6 +9914,8 @@ self: super: with self; { monzopy = callPackage ../development/python-modules/monzopy { }; + moocore = callPackage ../development/python-modules/moocore { }; + moonraker-api = callPackage ../development/python-modules/moonraker-api { }; mopeka-iot-ble = callPackage ../development/python-modules/mopeka-iot-ble { };