Skip to content

freqtrade: init at 2026.10, init module - #540082

Open
n0099 wants to merge 12 commits into
NixOS:masterfrom
n0099:feat/freqtrade
Open

n0099 wants to merge 12 commits into
NixOS:masterfrom
n0099:feat/freqtrade

Conversation

@n0099

@n0099 n0099 commented Jul 9, 2026 •

Copy link
Copy Markdown
Contributor

Things done

@n0099
n0099 force-pushed the feat/freqtrade branch from 1cf1744 to dc10a74 Compare July 9, 2026 18:42
@n0099 n0099 changed the title maintainers: add n0099 freqtrade: init at 2026.6 Jul 9, 2026
@n0099
n0099 force-pushed the feat/freqtrade branch 9 times, most recently from 14fcba5 to 88c6125 Compare July 9, 2026 22:23
@nixpkgs-ci nixpkgs-ci Bot added 8.has: package (new) This PR adds a new package 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 9.needs: reviewer This PR currently has no reviewers requested and needs attention. 6.topic: python Python is a high-level, general-purpose programming language. 8.has: maintainer-list (update) This PR changes `maintainers/maintainer-list.nix` labels Jul 9, 2026
@nixpkgs-ci
nixpkgs-ci Bot requested a review from nviets July 9, 2026 23:35
@nixpkgs-ci nixpkgs-ci Bot added 8.has: package (update) This PR updates a package to a newer version 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. 10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. and removed 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 9.needs: reviewer This PR currently has no reviewers requested and needs attention. labels Jul 9, 2026
@n0099 n0099 changed the title freqtrade: init at 2026.6 freqtrade: init at 2026.6, init module Jul 10, 2026
@nixpkgs-ci nixpkgs-ci Bot added 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: changelog This PR adds or changes release notes 8.has: module (update) This PR changes an existing module in `nixos/` 8.has: documentation This PR adds or changes documentation labels Jul 10, 2026
@n0099

n0099 commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

Merge conflict resolved in 07cb996...e9bfd86

$ git range-diff 14a68c504879b0661e86e96e96b10143b9cf2467^..07cb9968f95d5191676c989e2e50e53219b56b49 a37971eb28d7cb03e7e36634874442b522347f23^..e9bfd86749d8e3915d5aa56586394e3199043739
 1:  14a68c504879 =  1:  a37971eb28d7 maintainers: add n0099
 2:  cf9310c2750e =  2:  f00c222aa9a0 python3Packages.ast-comments: init at 1.3.0
 3:  1b6c434479a4 =  3:  3c3bf412b2e6 python3Packages.pycoingecko: init at 3.2.0
 4:  7ecf935c66f2 =  4:  24c03ed1be64 ta-lib: 0.7.1 -> 0.8.3
 5:  3aa863ce8cd1 =  5:  b2d512c6bc35 python3Packages.ta-lib: init at 0.8.3
 6:  e5d82587c7ed =  6:  5e50d1efc0d5 python3Packages.ccxt: init at 4.5.92
 7:  df6fd5fe85c2 =  7:  443bcb2b8de9 freqtrade: init at 2026.10
 8:  7873a652e984 =  8:  5d4a0c45271e python3Packages.datasieve: init at 0.1.9
 9:  97865a6826e6 !  9:  29271d6e0f17 python3Packages.stable-baselines3-contrib: init at 2.9.0
    @@ pkgs/top-level/python-packages.nix: self: super: with self; {

     +  stable-baselines3-contrib = callPackage ../development/python-modules/stable-baselines3-contrib { };
     +
    -   stac-validator = callPackage ../development/python-modules/stac-validator { };
    +   stac-valid = callPackage ../development/python-modules/stac-valid { };
      
        stack-data = callPackage ../development/python-modules/stack-data { };
10:  f5d0512d1dad = 10:  9818592c5759 xgboost: 3.0.5 -> 3.3.0
11:  a3346e9239c3 = 11:  3722f2311b95 freqtrade: add params for requiring `optional-dependencies` of `pyproject.toml`
12:  07cb9968f95d = 12:  e9bfd86749d8 nixos/freqtrade: init module

@nixpkgs-ci nixpkgs-ci Bot removed the 2.status: merge conflict This PR has merge conflicts with the target branch label Nov 26, 2026
@n0099

n0099 commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor Author

https://github.com/NixOS/nixpkgs/compare/e9bfd86749d8e3915d5aa56586394e3199043739..402f6f749734cf16bf696afb92c11f163331630f just re-order param, let binding and attrs in pkgs/development/python-modules/ccxt/deps.nix to match the order in their pyproject.toml: https://github.com/ccxt/ccxt/blob/e6fd82900c9f2b71fa0fa7524d95dd788e2803fc/pyproject.toml#L45

@n0099
n0099 force-pushed the feat/freqtrade branch 2 times, most recently from 39447c9 to 824ec48 Compare November 27, 2026 00:03
@n0099

n0099 commented Nov 27, 2026

Copy link
Copy Markdown
Contributor Author

@n0099

n0099 commented Nov 27, 2026

Copy link
Copy Markdown
Contributor Author

https://github.com/NixOS/nixpkgs/compare/824ec4846cc06bc369fa1ffd0a898cd85893b1de..2b2177ebb542e63329cb2200a57373afbbf60654 fixes failure of python31{3,4}Packages.ccxt due to multiple version of idna exists in its dependency closure:

[...]
Running phase: pythonCatchConflictsPhase
@nix { "action": "setPhase", "phase": "pythonCatchConflictsPhase" }
Found duplicated packages in closure for dependency 'idna': 
  idna 3.18 (/nix/store/pwr7i0q5s3hlb8s37hcifj3brrmjbqc9-python3.14-idna-3.18)
    dependency chain:
      this derivation: /nix/store/73y0z5a722nlf7i3c4lnp48353np43yr-python3.14-aiohttp-3.14.5
      ...depending on: /nix/store/66i88nlr39z5lzp7rwhjd4f0lahk901d-python3.14-yarl-1.25.1
      ...depending on: /nix/store/pwr7i0q5s3hlb8s37hcifj3brrmjbqc9-python3.14-idna-3.18
  idna 3.20 (/nix/store/jwpg479xrp07vkx3xxh94hxhnpxawm6m-python3.14-idna-3.20)
    dependency chain:
      this derivation: /nix/store/73y0z5a722nlf7i3c4lnp48353np43yr-python3.14-aiohttp-3.14.5
      ...depending on: /nix/store/ka5pkrg0agb2payjracgjcyfkyv6n8sa-python3.14-aiodns-4.0.4
      ...depending on: /nix/store/aks4j1agviycygprawgir2vbinfaxpxx-python3.14-pycares-5.0.1
      ...depending on: /nix/store/jwpg479xrp07vkx3xxh94hxhnpxawm6m-python3.14-idna-3.20

Package duplicates found in closure, see above. Usually this happens if two packages depend on different version of the same dependency.

@n0099

n0099 commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor Author

https://github.com/NixOS/nixpkgs/compare/2b2177ebb542e63329cb2200a57373afbbf60654..dcbe3e5d18c138e4fdc92cbe2fa2a1b7711a9580 fixes failure on the end of chain freqtrade -> pkgs/by-name/fr/freqtrade/ft-pandas-ta.nix -> locally setuptools at 75.5.0:

[...]
Running phase: pythonMetadataCheckPhase
@nix { "action": "setPhase", "phase": "pythonMetadataCheckPhase" }
Executing pythonMetadataCheckPhase
The 'setuptools' derivation has version '75.5.0' but .dist-info/METADATA specifies version '75.5.0.post20261127'.
This usually means that the wrong version is hardcoded in pyproject.toml or setup.{py,cfg}.
Use the pyprojectVersionPatchHook or patch the version manually so that the project metadata matches the derivation's version.

by setting dontCheckPythonMetadata = true, not using pyprojectVersionPatchHook as it claims

print("The version in pyproject.toml already matches the derivation's version. Remove pyprojectVersionPatchHook.")

tried trimming the field Version: 75.5.0.post20261127 in setuptools.egg-info/PKG-INFO but not affecting the returned value of importlib.metadata.version('setuptools') in
from importlib.metadata import PackageNotFoundError, version
from sys import argv, exit, stderr
pname = argv[1]
try:
print(version(pname))

Also update it to 75.6.0.

@n0099

n0099 commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor Author

https://github.com/NixOS/nixpkgs/compare/dcbe3e5d18c138e4fdc92cbe2fa2a1b7711a9580..cdc278194f5b8d2c9d4bbc91ff608c6672305a0b fixes failure on the end of chain freqtrade -> pkgs/by-name/fr/freqtrade/ft-pandas-ta.nix -> locally setuptools at 75.6.0:

[...]
Running phase: buildPhase
@nix { "action": "setPhase", "phase": "buildPhase" }
Executing pypaBuildPhase
Creating a wheel...
pypa build flags: --no-isolation --outdir dist/ --wheel
* Getting build dependencies for wheel...

ERROR Unmet dependencies (checked against /nix/store/b27pfnr0b9d0xqjfasrh6nr0lwpfp4zl-python3-3.14.10/bin/python3.14):
        setuptools<=75.6.0,>=61.0
                wanted: <=75.6.0,>=61.0
                found: 75.6.0.post20261127

by replace the source from github to pypi.

@nixpkgs-review-gha

Copy link
Copy Markdown

❌ nixpkgs-review result

Generated using nixpkgs-review-gha (dfefdaa)

Command: nixpkgs-review pr 540082
Commit: cdc278194f5b8d2c9d4bbc91ff608c6672305a0b (subsequent changes)
Merge: 74b6e6a56e2c9a09d06a0e69b2719c46ca290a48

Triggered by @n0099 (13030387)
Logs: https://github.com/n0099/nixpkgs-review-gha/actions/runs/45925313447/attempts/1


x86_64-linux

⏩ 2 packages blacklisted:
  • nixos-install-tools
  • tests.nixos-functions.nixos-test
❌ 3 packages failed to build:
  • haskellPackages.xgboost-haskell
  • freqtrade
  • xgboostWithCuda
✅ 22 packages built:
  • python313Packages.ast-comments
  • python313Packages.ccxt
  • python313Packages.datasieve
  • python313Packages.pycoingecko
  • python313Packages.pgmpy
  • python313Packages.flyingsquid
  • python313Packages.ta-lib
  • python313Packages.xgboost
  • python314Packages.ast-comments
  • python314Packages.ccxt
  • python314Packages.datasieve
  • python314Packages.flyingsquid
  • python314Packages.pgmpy
  • python314Packages.pycoingecko
  • python314Packages.stable-baselines3-contrib
  • python313Packages.stable-baselines3-contrib
  • python314Packages.ta-lib
  • python314Packages.xgboost
  • ta-lib
  • python313Packages.syne-tune
  • xgboost
  • python314Packages.syne-tune

aarch64-linux

⏩ 2 packages blacklisted:
  • nixos-install-tools
  • tests.nixos-functions.nixos-test
❌ 2 packages failed to build:
  • freqtrade
  • xgboostWithCuda
✅ 22 packages built:
  • python313Packages.ast-comments
  • python313Packages.ccxt
  • python313Packages.datasieve
  • python313Packages.pycoingecko
  • python313Packages.pgmpy
  • python313Packages.flyingsquid
  • python313Packages.ta-lib
  • python313Packages.xgboost
  • python314Packages.ast-comments
  • python314Packages.ccxt
  • python314Packages.datasieve
  • python314Packages.flyingsquid
  • python314Packages.pgmpy
  • python314Packages.pycoingecko
  • python314Packages.stable-baselines3-contrib
  • python313Packages.stable-baselines3-contrib
  • python314Packages.ta-lib
  • python314Packages.xgboost
  • ta-lib
  • python314Packages.syne-tune
  • xgboost
  • python313Packages.syne-tune

aarch64-darwin (sandbox = relaxed)

❌ 1 package failed to build:
  • haskellPackages.xgboost-haskell
✅ 18 packages built:
  • python313Packages.ast-comments
  • python313Packages.ccxt
  • python313Packages.datasieve
  • python313Packages.flyingsquid
  • python313Packages.pgmpy
  • python313Packages.pycoingecko
  • python313Packages.stable-baselines3-contrib
  • python313Packages.xgboost
  • python314Packages.ast-comments
  • python314Packages.ccxt
  • python314Packages.datasieve
  • python314Packages.flyingsquid
  • python314Packages.pgmpy
  • python314Packages.pycoingecko
  • python314Packages.stable-baselines3-contrib
  • python314Packages.syne-tune
  • python314Packages.xgboost
  • xgboost

@n0099

n0099 commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor Author

https://github.com/NixOS/nixpkgs/compare/cdc278194f5b8d2c9d4bbc91ff608c6672305a0b..9c08cc0c7b813136d750e11f040e56d9705c3ce2 replace nixpkgs commit link in comments with corresponding commit in their PR as a backport commit such as b40d316 got included in many other backport branch and their PRs.

n0099 added a commit to n0099/siye-srv-ops that referenced this pull request Nov 27, 2026
…iled` state as its process exit with code 130: NixOS/nixpkgs#540082 (comment) @ modules/freqtrade/_options.nix
n0099 added a commit to n0099/siye-srv-ops that referenced this pull request Nov 27, 2026
@n0099

n0099 commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor Author

https://github.com/NixOS/nixpkgs/compare/9c08cc0c7b813136d750e11f040e56d9705c3ce2..64f40d1fcc58bad49494c596774f9d30940a85ea fixes failure of freqtrade on {aarch64,x86_64}-linux that was caused by pnpmDeps of its local dependency pkgs/by-name/fr/freqtrade/frequi.nix:

[...]
error: hash mismatch in fixed-output derivation '/nix/store/zd07b03j5fgfy6335lljgdvg48yknf4v-frequi-pnpm-deps.drv':
         specified: sha256-yQ2dsfGTdMeWLI+p+U7i7njGegYTVyhM2hIhIa9YeTA=
            got:    sha256-ltrRILUNgyBzg5U6RLGq5fZ0K34dnynDFxmpBUPdMiQ=
[...]

sha256-yQ2dsfGTdMeWLI+p+U7i7njGegYTVyhM2hIhIa9YeTA= was calculated on my machine days ago: n0099/siye-srv-ops@19a12f7#diff-89f74162d7501e1715204d6251657365af3b68b736e14055e7bdd3fad1e93e5bR26, and it's now sha256-ltrRILUNgyBzg5U6RLGq5fZ0K34dnynDFxmpBUPdMiQ= after re-calculate, no idea about why hash changes.

@nixpkgs-review-gha

Copy link
Copy Markdown

❌ nixpkgs-review result

Generated using nixpkgs-review-gha (dfefdaa)

Command: nixpkgs-review pr 540082
Commit: 64f40d1fcc58bad49494c596774f9d30940a85ea (subsequent changes)
Merge: efaa7e810103a82c425c7bfebeb43960d6be93d3

Triggered by @n0099 (13030387)
Logs: https://github.com/n0099/nixpkgs-review-gha/actions/runs/46090203255/attempts/1


x86_64-linux

⏩ 2 packages blacklisted:
  • nixos-install-tools
  • tests.nixos-functions.nixos-test
❌ 2 packages failed to build:
  • haskellPackages.xgboost-haskell
  • xgboostWithCuda
✅ 23 packages built:
  • python313Packages.ast-comments
  • freqtrade
  • python313Packages.ccxt
  • python313Packages.datasieve
  • python313Packages.pycoingecko
  • python313Packages.pgmpy
  • python313Packages.flyingsquid
  • python313Packages.ta-lib
  • python313Packages.xgboost
  • python314Packages.ast-comments
  • python314Packages.ccxt
  • python314Packages.datasieve
  • python314Packages.flyingsquid
  • python314Packages.pgmpy
  • python314Packages.pycoingecko
  • python314Packages.stable-baselines3-contrib
  • python313Packages.stable-baselines3-contrib
  • python314Packages.ta-lib
  • python314Packages.xgboost
  • ta-lib
  • python314Packages.syne-tune
  • xgboost
  • python313Packages.syne-tune

aarch64-linux

⏩ 2 packages blacklisted:
  • nixos-install-tools
  • tests.nixos-functions.nixos-test
❌ 1 package failed to build:
  • xgboostWithCuda
✅ 23 packages built:
  • python313Packages.ast-comments
  • python313Packages.ccxt
  • freqtrade
  • python313Packages.pgmpy
  • python313Packages.datasieve
  • python313Packages.flyingsquid
  • python313Packages.pycoingecko
  • python313Packages.ta-lib
  • python313Packages.xgboost
  • python314Packages.ast-comments
  • python314Packages.ccxt
  • python314Packages.datasieve
  • python314Packages.flyingsquid
  • python314Packages.pgmpy
  • python314Packages.pycoingecko
  • python314Packages.stable-baselines3-contrib
  • python313Packages.stable-baselines3-contrib
  • python314Packages.ta-lib
  • python314Packages.xgboost
  • ta-lib
  • python314Packages.syne-tune
  • xgboost
  • python313Packages.syne-tune

aarch64-darwin (sandbox = relaxed)

❌ 1 package failed to build:
  • haskellPackages.xgboost-haskell
✅ 18 packages built:
  • python313Packages.ast-comments
  • python313Packages.ccxt
  • python313Packages.datasieve
  • python313Packages.flyingsquid
  • python313Packages.pgmpy
  • python313Packages.pycoingecko
  • python313Packages.stable-baselines3-contrib
  • python313Packages.xgboost
  • python314Packages.ast-comments
  • python314Packages.ccxt
  • python314Packages.datasieve
  • python314Packages.flyingsquid
  • python314Packages.pgmpy
  • python314Packages.pycoingecko
  • python314Packages.stable-baselines3-contrib
  • python314Packages.syne-tune
  • python314Packages.xgboost
  • xgboost

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 6.topic: python Python is a high-level, general-purpose programming language. 8.has: changelog This PR adds or changes release notes 8.has: documentation This PR adds or changes documentation 8.has: maintainer-list (update) This PR changes `maintainers/maintainer-list.nix` 8.has: module (new) This PR adds a module in `nixos/` 8.has: module (update) This PR changes an existing module in `nixos/` 8.has: package (new) This PR adds a new package 8.has: package (update) This PR updates a package to a newer version 10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux.

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants