No description
Find a file
Tobias Pflug 3a1eb66fbc Improve PEP425 support
Make sure that whl files using notation such as "py2|py3|py2.py3"
and/or files using "any" in the `abi` tag are accepted as well.
2019-12-17 18:13:11 +01:00
pkgs/poetry Remove default values and drop src from mkPoetryPyhon 2019-12-17 12:38:34 +01:00
tests Improve PEP425 support 2019-12-17 18:13:11 +01:00
.gitlab-ci.yml ci: test on 19.09 and unstable 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 fix mkPoetryPython 2019-12-17 14:50:58 +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
lib.nix nixpkgs-fmt all the things 2019-12-16 15:03:49 +01:00
Makefile Properly fetch sdists with extension 2019-06-24 17:01:27 +01:00
mk-poetry-dep.nix Remove NIX_PYTHON_MANYLINUX 2019-12-16 16:47:51 +01:00
overlay.nix Add overlay files 2019-11-19 16:34:50 +00:00
overrides.nix Add wheel file selection according to pep425 2019-12-16 15:02:41 +01:00
pep425.nix Improve PEP425 support 2019-12-17 18:13:11 +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 Refactoring 2019-12-16 15:03:49 +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.