Skip to content

Commit

Permalink
[nix] Add supported python versions
Browse files Browse the repository at this point in the history
  • Loading branch information
afishhh authored and otargowski committed Jun 27, 2023
1 parent c1c03bc commit 02aa449
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
6 changes: 3 additions & 3 deletions flake.lock

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

2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
})
];

sioworkers = with final.python38Packages; toPythonApplication sioworkers;
sioworkers = with final.python310Packages; toPythonApplication sioworkers;
};

nixosModules.default = {
Expand Down
2 changes: 1 addition & 1 deletion nix/module/worker.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
enable = lib.mkEnableOption "sioworker";

package = lib.mkPackageOption pkgs "sioworkers" {
default = [ "python38Packages" "sioworkers" ];
default = [ "python310Packages" "sioworkers" ];
};

filetrackerUrl = lib.mkOption {
Expand Down
2 changes: 1 addition & 1 deletion nix/module/workersd.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
enable = lib.mkEnableOption "sioworkersd";

package = lib.mkPackageOption pkgs "sioworkers" {
default = [ "python38Packages" "sioworkers" ];
default = [ "python310Packages" "sioworkers" ];
};

taskMemoryLimit = lib.mkOption {
Expand Down
3 changes: 3 additions & 0 deletions nix/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
, stdenv
, lib
, buildPythonPackage
, pythonAtLeast
, pythonOlder

, six
, filetracker
Expand All @@ -21,6 +23,7 @@
buildPythonPackage {
pname = "sioworkers";
version = "1.0";
disabled = pythonAtLeast "3.11" || pythonOlder "3.9";

src = builtins.path {
path = ./..;
Expand Down

0 comments on commit 02aa449

Please sign in to comment.