No description
Find a file
zimbatm 1528d54851
handle intreehooks buildsystem
This is necessary for the next version of poetry
2019-12-11 14:13:39 +01:00
pkgs/poetry poetry: 1.0.0b5 -> 1.0.0b8 2019-11-28 10:59:01 +00:00
tests nixpkgs-fmt: format all the nix code 2019-12-11 13:31:22 +01:00
.gitlab-ci.yml Add gitlab ci config 2019-11-29 10:54:08 +00:00
default.nix handle intreehooks buildsystem 2019-12-11 14:13:39 +01:00
extensions.json Properly fetch sdists with extension 2019-06-24 17:01:27 +01:00
flake.lock Add nix flake 2019-11-19 20:00:38 +00:00
flake.nix nixpkgs-fmt: format all the nix code 2019-12-11 13:31:22 +01:00
generate.py Properly fetch sdists with extension 2019-06-24 17:01:27 +01:00
Makefile Properly fetch sdists with extension 2019-06-24 17:01:27 +01:00
overlay.nix Add overlay files 2019-11-19 16:34:50 +00:00
overrides.nix nixpkgs-fmt: format all the nix code 2019-12-11 13:31:22 +01:00
pep508.nix nixpkgs-fmt: format all the nix code 2019-12-11 13:31:22 +01:00
README.org Update README pipeline url 2019-11-30 11:47:18 +00:00
semver.nix nixpkgs-fmt: format all the nix code 2019-12-11 13:31:22 +01:00
shell.nix nixpkgs-fmt: format all the nix code 2019-12-11 13:31:22 +01:00

https://gitlab.com/nix-community/poetry2nix/badges/master/pipeline.svg

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.