Skip to content

Commit

Permalink
fix: update flake, pyproject.toml to work with current poetry2nix via…
Browse files Browse the repository at this point in the history
… flake
  • Loading branch information
jcszymansk committed May 27, 2024
1 parent 8af7207 commit 392b78e
Show file tree
Hide file tree
Showing 3 changed files with 99 additions and 5 deletions.
86 changes: 85 additions & 1 deletion flake.lock

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

14 changes: 12 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -1,12 +1,22 @@
{
inputs = {
flake-utils.url = "github:numtide/flake-utils";
poetry2nix = {
url = "github:nix-community/poetry2nix/2024.5.939250";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-utils.follows = "flake-utils";
};
};

outputs = { self, flake-utils, nixpkgs }: (flake-utils.lib.eachDefaultSystem (
outputs = { self, flake-utils, nixpkgs, ... }@inputs: (flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = nixpkgs.legacyPackages.${system};
pkgs = import nixpkgs {
inherit system;
config.packageOverrides = _: {
poetry2nix = inputs.poetry2nix.lib.mkPoetry2Nix { inherit pkgs; };
};
};
openconnect-sso = (import ./nix { inherit pkgs; }).openconnect-sso;
in
{
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,5 @@ pytest-httpserver = "^1.0"
target-version = ['py36', 'py37', 'py38']

[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

0 comments on commit 392b78e

Please sign in to comment.