From 65fac803f61a14ec924bdef522b769b98679ed9a Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Sun, 5 Apr 2026 00:32:40 +0100 Subject: [PATCH 1/2] python3Packages.pricehist: move from 'pkgs/by-name' --- .../python-modules/pricehist/default.nix} | 19 +++++++++++++------ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 15 insertions(+), 6 deletions(-) rename pkgs/{by-name/pr/pricehist/package.nix => development/python-modules/pricehist/default.nix} (76%) diff --git a/pkgs/by-name/pr/pricehist/package.nix b/pkgs/development/python-modules/pricehist/default.nix similarity index 76% rename from pkgs/by-name/pr/pricehist/package.nix rename to pkgs/development/python-modules/pricehist/default.nix index 498227b709c7..2f46f477fac9 100644 --- a/pkgs/by-name/pr/pricehist/package.nix +++ b/pkgs/development/python-modules/pricehist/default.nix @@ -1,10 +1,17 @@ { lib, - python3Packages, fetchFromGitLab, + buildPythonPackage, + cssselect, + curlify, + lxml, + poetry-core, + pytest-mock, + pytestCheckHook, + requests, + responses, }: - -python3Packages.buildPythonApplication (finalAttrs: { +buildPythonPackage (finalAttrs: { pname = "pricehist"; version = "1.4.14"; pyproject = true; @@ -18,18 +25,18 @@ python3Packages.buildPythonApplication (finalAttrs: { pythonRelaxDeps = [ "lxml" ]; - dependencies = with python3Packages; [ + dependencies = [ requests lxml cssselect curlify ]; - build-system = with python3Packages; [ + build-system = [ poetry-core ]; - nativeCheckInputs = with python3Packages; [ + nativeCheckInputs = [ responses pytest-mock pytestCheckHook diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 361b7833be50..a194b7e9b079 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -12799,6 +12799,8 @@ self: super: with self; { price-parser = callPackage ../development/python-modules/price-parser { }; + pricehist = callPackage ../development/python-modules/pricehist { }; + primecountpy = callPackage ../development/python-modules/primecountpy { }; primepy = callPackage ../development/python-modules/primepy { }; From 8ea4f3c2cc818fe0406027ae8e1f5faaf3c0ca1c Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Sun, 5 Apr 2026 00:37:09 +0100 Subject: [PATCH 2/2] prichehist: use 'toPythonApplication' Pairing with the previous commit which moved the package definition inside `python3Packages`. --- pkgs/by-name/pr/pricehist/package.nix | 1 + 1 file changed, 1 insertion(+) create mode 100644 pkgs/by-name/pr/pricehist/package.nix diff --git a/pkgs/by-name/pr/pricehist/package.nix b/pkgs/by-name/pr/pricehist/package.nix new file mode 100644 index 000000000000..72295b65be8a --- /dev/null +++ b/pkgs/by-name/pr/pricehist/package.nix @@ -0,0 +1 @@ +{ python3Packages }: python3Packages.toPythonApplication python3Packages.pricehist