Support pyproject.toml as requirement format
DavHau opened this issue · 4 comments
DavHau commented
Some projects use pyproject.toml instead of requirements.txt to specify their requirements. It would be great to support this format.
This also needs to be added to the crawler.
Relevant PEPs:
PEP-518
nasyxx commented
Is there any progress on this issue?
How can I use mach-nix if a package does not have a setup.py but pyproject.toml only?
DavHau commented
Hey, unfortunately there is no progress on this so far. PR's are welcome.
As long as your package's build backend is supported by pkgs.buildPythonPackage
, then you can also use mach-nix.buildPythonPackage
.
Just provide the list of requirements via requirements
argument.
You probably have to pass format = "pyproject"
as well. See mk-python-derivation.nix in nixpkgs
nasyxx commented
Thank you!