mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-04 16:51:40 -05:00
No description
![]() - The first letter path segment in the url needs to be lowercased https://files.pythonhosted.org/packages/source/S/sqlalchemy/SQLAlchemy-1.3.11.tar.gz vs https://files.pythonhosted.org/packages/source/s/sqlalchemy/SQLAlchemy-1.3.11.tar.gz - Rename fetchPypi to fetchFromPypi just to make it clear that we are not using fetchPypi from nixpkgs |
||
---|---|---|
pkgs/poetry | ||
default.nix | ||
extensions.json | ||
flake.lock | ||
flake.nix | ||
generate.py | ||
Makefile | ||
overlay.nix | ||
overrides.nix | ||
pep508.nix | ||
README.org | ||
semver.nix |
https://travis-ci.org/adisbladis/poetry2nix.svg?branch=master
poetry2nix
Poetry2nix turns Poetry projects into Nix derivations without the need to actually write Nix expressions.
It does so by parsing pyproject.toml
and poetry.lock
and converting them to Nix derivations on the fly.
Usage
Example default.nix
The easiest way to import poetry2nix is as an overlay.
let
pkgs = import <nixpkgs> {
overlays = [
(import ((builtins.fetchTarball { url = https://github.com/adisbladis/poetry2nix/archive/master.tar.gz; }) + "/overlay.nix"))
];
};
in pkgs.poetry2nix.mkPoetryPackage {
python = python3;
pyproject = ./pyproject.toml;
poetryLock = ./poetry.lock;
src = lib.cleanSource ./.;
}
Poetry2nix is also available as a Nix flake.
License
poetry2nix
is released under the terms of the MIT license.