No description
Find a file
adisbladis e194dd6590
Add empty license
poetry.lock does not contain licenses but it's sometimes expected by nixpkgs.
2019-11-27 20:25:05 +00:00
pkgs/poetry Add nix flake 2019-11-19 20:00:38 +00:00
test !fxuip 2019-11-27 17:04:32 +00:00
default.nix Add empty license 2019-11-27 20:25:05 +00: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 Add nix flake 2019-11-19 20:00:38 +00: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 simplify fetchPypi, remove need for overrides 2019-11-27 15:53:52 +00:00
pep508.nix pep508: Fix incorrect evaluation of groups 2019-11-16 19:28:21 +00:00
README.org Add informative readme 2019-11-19 22:09:02 +00:00
semver.nix Add support for the python-versions field from poetry.lock 2019-10-16 15:36:52 +01:00

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.