Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support pyproject.toml as requirement format #14

Open
DavHau opened this issue May 5, 2020 · 4 comments
Open

Support pyproject.toml as requirement format #14

DavHau opened this issue May 5, 2020 · 4 comments
Labels
enhancement New feature or request

Comments

@DavHau
Copy link
Owner

DavHau commented May 5, 2020

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

@DavHau DavHau added the enhancement New feature or request label May 7, 2020
@DavHau DavHau changed the title Support pyproject.toml as requirement provider Support pyproject.toml as requirement format Sep 27, 2020
@nasyxx
Copy link
Contributor

nasyxx commented Mar 4, 2021

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
Copy link
Owner Author

DavHau commented Mar 5, 2021

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
Copy link
Contributor

nasyxx commented Mar 15, 2021

Thank you!

@exarkun
Copy link
Contributor

exarkun commented Jan 27, 2022

Is #319 a duplicate of this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants