diff --git a/examples/python-poetry/devenv.nix b/examples/python-poetry/devenv.nix index e3dd29617..9d4f6f801 100644 --- a/examples/python-poetry/devenv.nix +++ b/examples/python-poetry/devenv.nix @@ -4,12 +4,29 @@ packages = [ # A native dependency of numpy pkgs.zlib - # A python dependency outside of poetry. config.languages.python.package.pkgs.pjsua2 ]; + languages.python = { enable = true; - poetry.enable = true; + poetry = { + enable = true; + install = { + enable = true; + installRootPackage = false; + onlyInstallRootPackage = false; + compile = false; + quiet = false; + groups = [ ]; + ignoredGroups = [ ]; + onlyGroups = [ ]; + extras = [ ]; + allExtras = false; + verbosity = "no"; + }; + activate.enable = true; + package = pkgs.poetry; + }; }; } diff --git a/examples/python-poetry/devenv.yaml b/examples/python-poetry/devenv.yaml index c7cb5ceda..15728c9fc 100644 --- a/examples/python-poetry/devenv.yaml +++ b/examples/python-poetry/devenv.yaml @@ -1,3 +1,7 @@ +--- + inputs: nixpkgs: url: github:NixOS/nixpkgs/nixpkgs-unstable + nixpkgs-python: + url: github:cachix/nixpkgs-python diff --git a/examples/python-poetry/pyproject.toml b/examples/python-poetry/pyproject.toml index b16b3d14d..f6e9ff20a 100644 --- a/examples/python-poetry/pyproject.toml +++ b/examples/python-poetry/pyproject.toml @@ -1,15 +1,17 @@ +[build-system] +requires = ["poetry-core"] +build-backend = "poetry.core.masonry.api" + [tool.poetry] name = "python-poetry" -version = "0.1.0" +version = "0.2.0" description = "" -authors = ["Bob van der Linden "] +authors = [ + "Bob van der Linden ", + "Matthias Thym " +] readme = "README.md" [tool.poetry.dependencies] python = "^3.10" numpy = "^1.24.1" - - -[build-system] -requires = ["poetry-core"] -build-backend = "poetry.core.masonry.api"