From b5b1b487dea951e7dc28115bd74994962390647f Mon Sep 17 00:00:00 2001 From: Harinn Date: Sat, 6 Jun 2026 01:31:44 +0700 Subject: [PATCH 1/2] python3Packages.baselines: migrate to pyproject --- pkgs/development/python-modules/baselines/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/baselines/default.nix b/pkgs/development/python-modules/baselines/default.nix index 7077da5601e3..641add7e269d 100644 --- a/pkgs/development/python-modules/baselines/default.nix +++ b/pkgs/development/python-modules/baselines/default.nix @@ -2,6 +2,7 @@ lib, buildPythonPackage, fetchFromGitHub, + setuptools, pytest, gym, scipy, @@ -19,7 +20,7 @@ buildPythonPackage { pname = "baselines"; version = "0.1.6"; # remember to manually adjust the rev - format = "setuptools"; + pyproject = true; src = fetchFromGitHub { owner = "openai"; @@ -29,7 +30,9 @@ buildPythonPackage { sha256 = "0j2ck7rsrcyny9qbmrw9aqvzfhv70nbign8iva2dsisa2x24gbcl"; }; - propagatedBuildInputs = [ + build-system = [ setuptools ]; + + dependencies = [ gym scipy tqdm From f3de18104755bec9584f6f836aa436122cff1d1a Mon Sep 17 00:00:00 2001 From: Harinn Date: Sat, 6 Jun 2026 01:36:26 +0700 Subject: [PATCH 2/2] python3Packages.baselines: modernize --- pkgs/development/python-modules/baselines/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/baselines/default.nix b/pkgs/development/python-modules/baselines/default.nix index 641add7e269d..38eb1e4b66cd 100644 --- a/pkgs/development/python-modules/baselines/default.nix +++ b/pkgs/development/python-modules/baselines/default.nix @@ -22,12 +22,14 @@ buildPythonPackage { version = "0.1.6"; # remember to manually adjust the rev pyproject = true; + __structuredAttrs = true; + src = fetchFromGitHub { owner = "openai"; repo = "baselines"; # Unfortunately releases are not tagged. This commit bumps the version in setup.py rev = "2bca7901f51c88cdef3ca0666c6a87c454a4dbe8"; - sha256 = "0j2ck7rsrcyny9qbmrw9aqvzfhv70nbign8iva2dsisa2x24gbcl"; + hash = "sha256-lK1HRBdKR92E2hHZF5cFZ0P3N1aJ57pw8tazrPOZTEg="; }; build-system = [ setuptools ]; @@ -58,6 +60,8 @@ buildPythonPackage { nativeCheckInputs = [ pytest ]; + pythonImportsCheck = [ "baselines" ]; + meta = { description = "High-quality implementations of reinforcement learning algorithms"; homepage = "https://github.com/openai/baselines";