Skip to content

Commit

Permalink
Update python-poetry example
Browse files Browse the repository at this point in the history
  • Loading branch information
totoroot committed Mar 4, 2024
1 parent 2073cbc commit bf833fd
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 9 deletions.
21 changes: 19 additions & 2 deletions examples/python-poetry/devenv.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
};
}
4 changes: 4 additions & 0 deletions examples/python-poetry/devenv.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---

inputs:
nixpkgs:
url: github:NixOS/nixpkgs/nixpkgs-unstable
nixpkgs-python:
url: github:cachix/nixpkgs-python
16 changes: 9 additions & 7 deletions examples/python-poetry/pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <bobvanderlinden@gmail.com>"]
authors = [
"Bob van der Linden <bobvanderlinden@gmail.com>",
"Matthias Thym <git@thym.at>"
]
readme = "README.md"

[tool.poetry.dependencies]
python = "^3.10"
numpy = "^1.24.1"


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

0 comments on commit bf833fd

Please sign in to comment.