From 63cb5430b891bef10c3ae5ecedeb6526682d9210 Mon Sep 17 00:00:00 2001 From: Sarah Clark Date: Thu, 8 Jan 2026 11:00:09 -0800 Subject: [PATCH 1/3] python3Packages.pgmpy: apply finalAttrs --- pkgs/development/python-modules/pgmpy/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/pgmpy/default.nix b/pkgs/development/python-modules/pgmpy/default.nix index 2d0922df3a11..3a91e91e4605 100644 --- a/pkgs/development/python-modules/pgmpy/default.nix +++ b/pkgs/development/python-modules/pgmpy/default.nix @@ -24,7 +24,7 @@ pytest-cov-stub, mock, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "pgmpy"; version = "1.0.0"; pyproject = true; @@ -32,7 +32,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "pgmpy"; repo = "pgmpy"; - tag = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-WmRtek3lN7vEfXqoaZDiaNjMQ7R2PmJ/OEwxOV7m5sE="; }; @@ -81,8 +81,8 @@ buildPythonPackage rec { meta = { description = "Python Library for learning (Structure and Parameter), inference (Probabilistic and Causal), and simulations in Bayesian Networks"; homepage = "https://github.com/pgmpy/pgmpy"; - changelog = "https://github.com/pgmpy/pgmpy/releases/tag/${src.tag}"; + changelog = "https://github.com/pgmpy/pgmpy/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ happysalada ]; }; -} +}) From 658b91e37ea992be50f4afb772f897ae304141ae Mon Sep 17 00:00:00 2001 From: Sarah Clark Date: Thu, 8 Jan 2026 11:03:16 -0800 Subject: [PATCH 2/3] python3Packages.pgmpy: add sarahec as maintainer --- pkgs/development/python-modules/pgmpy/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/pgmpy/default.nix b/pkgs/development/python-modules/pgmpy/default.nix index 3a91e91e4605..c0496143eb3a 100644 --- a/pkgs/development/python-modules/pgmpy/default.nix +++ b/pkgs/development/python-modules/pgmpy/default.nix @@ -83,6 +83,9 @@ buildPythonPackage (finalAttrs: { homepage = "https://github.com/pgmpy/pgmpy"; changelog = "https://github.com/pgmpy/pgmpy/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.mit; - maintainers = with lib.maintainers; [ happysalada ]; + maintainers = with lib.maintainers; [ + happysalada + sarahec + ]; }; }) From bc9279fd89332f7308bb4d6497b88b455ddc0173 Mon Sep 17 00:00:00 2001 From: Sarah Clark Date: Thu, 8 Jan 2026 10:20:11 -0800 Subject: [PATCH 3/3] python3Packages.pgmpy: 1.0.0 -> 1.0.0-unstable-2025-12-20 for python 3.14 compatibility --- .../python-modules/pgmpy/default.nix | 26 ++++++++++++++++--- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/pgmpy/default.nix b/pkgs/development/python-modules/pgmpy/default.nix index c0496143eb3a..3a473f07c388 100644 --- a/pkgs/development/python-modules/pgmpy/default.nix +++ b/pkgs/development/python-modules/pgmpy/default.nix @@ -12,6 +12,7 @@ pandas, pyparsing, pyro-ppl, + scikit-base, scikit-learn, scipy, statsmodels, @@ -23,17 +24,18 @@ pytestCheckHook, pytest-cov-stub, mock, + writableTmpDirAsHomeHook, }: buildPythonPackage (finalAttrs: { pname = "pgmpy"; - version = "1.0.0"; + version = "1.0.0-unstable-2025-12-20"; pyproject = true; src = fetchFromGitHub { owner = "pgmpy"; repo = "pgmpy"; - tag = "v${finalAttrs.version}"; - hash = "sha256-WmRtek3lN7vEfXqoaZDiaNjMQ7R2PmJ/OEwxOV7m5sE="; + rev = "197e1e0444c77c00581a4c32763811e5b03f8503"; + hash = "sha256-TCnn3GrITW8HCrYVeeythiULV130b6uulkijkPpJOqA="; }; dependencies = [ @@ -45,6 +47,7 @@ buildPythonPackage (finalAttrs: { pandas pyparsing pyro-ppl + scikit-base scikit-learn scipy statsmodels @@ -67,6 +70,20 @@ buildPythonPackage (finalAttrs: { # AssertionError "test_estimate_example_smoke_test" + "test_gcm" + ]; + + enabledTestPaths = [ + "pgmpy/tests" + ]; + + disabledTestPaths = [ + # requires network access + "pgmpy/tests/test_datasets" + + # Very slow + "pgmpy/tests/test_estimators" + "pgmpy/tests/test_models" ]; nativeCheckInputs = [ @@ -74,6 +91,7 @@ buildPythonPackage (finalAttrs: { # xdoctest pytest-cov-stub mock + writableTmpDirAsHomeHook ]; pythonImportsCheck = [ "pgmpy" ]; @@ -81,7 +99,7 @@ buildPythonPackage (finalAttrs: { meta = { description = "Python Library for learning (Structure and Parameter), inference (Probabilistic and Causal), and simulations in Bayesian Networks"; homepage = "https://github.com/pgmpy/pgmpy"; - changelog = "https://github.com/pgmpy/pgmpy/releases/tag/${finalAttrs.src.tag}"; + # changelog = "https://github.com/pgmpy/pgmpy/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ happysalada