Skip to content

Commit

Permalink
Merge pull request #6 from brokenpip3/python-3.12
Browse files Browse the repository at this point in the history
update to python3.12
  • Loading branch information
brokenpip3 authored Jan 12, 2025
2 parents 86a0916 + f7bcc09 commit 462b3fd
Show file tree
Hide file tree
Showing 4 changed files with 163 additions and 151 deletions.
23 changes: 12 additions & 11 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 11 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
inherit (poetry2nix.lib.mkPoetry2Nix { inherit pkgs; }) mkPoetryApplication;
inherit (poetry2nix.lib.mkPoetry2Nix { inherit pkgs; }) mkPoetryApplication defaultPoetryOverrides;
lotbVersion = ((builtins.fromTOML (builtins.readFile ./pyproject.toml)).tool.poetry.version);
lotbName = ((builtins.fromTOML (builtins.readFile ./pyproject.toml)).tool.poetry.name);
dockerRegistry = "ghcr.io/brokenpip3";
Expand All @@ -24,9 +24,18 @@

packages = {
"${lotbName}" = mkPoetryApplication {
python = pkgs.python3;
python = pkgs.python312;
projectDir = self;
checkPhase = "pytest -s -v";
overrides = defaultPoetryOverrides.extend
(final: prev: {
python-telegram-bot = prev.python-telegram-bot.overridePythonAttrs
(
old: {
buildInputs = (old.buildInputs or [ ]) ++ [ prev.hatchling ];
}
);
});
};
default = self.packages.${system}."${lotbName}";
};
Expand Down
Loading

0 comments on commit 462b3fd

Please sign in to comment.