Hello, I’m trying to get started with poetry2nix by packaging a python package
that uses poetry.
The python package is here: GitHub - michelcrypt4d4mus/pdfalyzer: Analyze PDFs. With colors. And Yara.
I’m running nix-build
against this default.nix
.
{ pkgs ? import <nixpkgs> { } }:
let
src = pkgs.fetchFromGitHub {
owner = "michelcrypt4d4mus";
repo = "pdfalyzer";
rev = "v1.14.0";
sha256 = "sha256-oGeafRerIa0QF1WeAMHxQH/NYgf1Lck2BieD8rSluRs=";
};
in with pkgs; poetry2nix.mkPoetryApplication { projectDir = src; }
nix-build
fails with this message:
error: builder for '/nix/store/s10hakr1jwlx1gdyy5dbdbpn34g6f8q0-python3.10-rich-argparse-plus-0.3.1.4.drv' failed with exit code 2;
last 10 log lines:
> File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
> File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
> File "<frozen importlib._bootstrap>", line 992, in _find_and_load_unlocked
> File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
> File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
> File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
> File "<frozen importlib._bootstrap>", line 1004, in _find_and_load_unlocked
> ModuleNotFoundError: No module named 'flit_core'
>
>
For full logs, run 'nix log /nix/store/s10hakr1jwlx1gdyy5dbdbpn34g6f8q0-python3.10-rich-argparse-plus-0.3.1.4.drv'.
error: 1 dependencies of derivation '/nix/store/j2lv88zg037wj0nr3vzcbg8w1l836ni5-python3.10-pdfalyzer-1.14.1.drv' failed to build
How can I fix this issue?