Open
Description
EDIT: original title was "flit_core backend missing"
Describe the issue
In entrypoints-0.4
the backend is flit_core.buildapi
which is specified in requires in build-system.
https://github.com/takluyver/entrypoints/blob/ebdf2d8edc9921427ea07688851999796093c240/pyproject.toml#L2-L3
Trying to build entrypoints
in a poetry2nix mkPoetryEnv fails on build with
ModuleNotFoundError: No module named 'flit_core'
Additional context
Entering nix shell I can check that flit_core is not available (not in pip list)
It's weird because it seems to me that poetry2nix reads the backend fields
Line 161 in 69cc39a
default.nix
/shell.nix
/flake.nix
{
inputs.flake-utils.url = "github:numtide/flake-utils";
inputs.poetry2nix.url = "github:nix-community/poetry2nix";
outputs = { self, nixpkgs, flake-utils, poetry2nix, ... }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system;
overlay = [ poetry2nix.overlay ];
};
in
{
devShell =
pkgs.poetry2nix.mkPoetryEnv {
projectDir = ./.;
};
});
}
pyproject.toml
[ tool.poetry ]
name = "poetry-nix"
version = "0.1.0"
description = ""
authors = ["Guillaume Desforges <guillaume.desforges.pro@gmail.com>"]
[tool.poetry.dependencies]
python = "^3.8"
entrypoints = "^0.4"
[tool.poetry.dev-dependencies]
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
`poetry.lock`
[[package]]
name = "entrypoints"
version = "0.4"
description = "Discover and load entry points from installed packages."
category = "main"
optional = false
python-versions = ">=3.6"
[metadata]
lock-version = "1.1"
python-versions = "^3.8"
content-hash = "5d84993b5abc54589527347f1f6dcea0edde667a81ae537884ae1585c42b951a"
[metadata.files]
entrypoints = [
{file = "entrypoints-0.4-py3-none-any.whl", hash = "sha256:f174b5ff827504fd3cd97cc3f8649f3693f51538c7e4bdf3ef002c8429d42f9f"},
{file = "entrypoints-0.4.tar.gz", hash = "sha256:b706eddaa9218a19ebcd67b56818f05bb27589b1ca9e8d797b74affad4ccacd4"},
]
Metadata
Metadata
Assignees
Labels
No labels