Python: Difference between revisions
→With pyproject.toml: Add hint for launching IDE with dependency resolution. Also, make it clear pyproject.nix axample uses flakes. |
m Some nix formatting |
||
| Line 38: | Line 38: | ||
Generally, you may create a file that looks like this:<syntaxhighlight lang="nix" line="1"> | Generally, you may create a file that looks like this:<syntaxhighlight lang="nix" line="1"> | ||
# toolz.nix | # toolz.nix | ||
{ lib | { | ||
, | lib, | ||
, | buildPythonPackage, | ||
, | fetchPypi, | ||
, | setuptools, | ||
wheel, | |||
}: | }: | ||
| Line 464: | Line 465: | ||
<syntaxhighlight lang="nix" line="1"> | <syntaxhighlight lang="nix" line="1"> | ||
{ lib | { | ||
, | lib, | ||
pythonPackages, | |||
}: | }: | ||
buildPythonApplication { | buildPythonApplication { | ||