No description
Find a file
2019-12-13 18:35:18 +01:00
pkgs/poetry poetry: 1.0.0b9 -> 1.0.0 2019-12-13 12:53:27 +00:00
tests tests: enable trivial test 2019-12-13 18:35:18 +01:00
.gitlab-ci.yml ci: add nix code formatting check 2019-12-13 18:35:18 +01:00
check-fmt ci: add nix code formatting check 2019-12-13 18:35:18 +01: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 ci: add nix code formatting check 2019-12-13 18:35:18 +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.