python3.pkgs.single-version: use poetry-core instead of poetry (#248626)

This commit is contained in:
Theodore Ni 2023-08-11 22:59:49 -07:00 committed by GitHub
parent ac7f471098
commit 7ad1b2d4e1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 23 deletions

View file

@ -1,21 +0,0 @@
From d949b37151cd538d4c6a15e1ba6c1343f8bff76d Mon Sep 17 00:00:00 2001
From: "P. R. d. O" <d.ol.rod@protonmail.com>
Date: Mon, 6 Dec 2021 15:26:19 -0600
Subject: [PATCH] set poetry-core
---
pyproject.toml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pyproject.toml b/pyproject.toml
index d3fdc52..bd7ddc2 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -27,4 +27,4 @@ black = "^19.10b0"
[build-system]
requires = ["poetry>=0.12"]
-build-backend = "poetry.masonry.api"
+build-backend = "poetry.core.masonry.api"
--
2.33.1

View file

@ -1,4 +1,10 @@
{ lib, buildPythonPackage, fetchFromGitHub, poetry-core, pytestCheckHook }:
{ lib
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, poetry-core
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "single-version";
@ -13,7 +19,12 @@ buildPythonPackage rec {
};
patches = [
./0001-set-poetry-core.patch
# https://github.com/hongquan/single-version/pull/4
(fetchpatch {
name = "use-poetry-core.patch";
url = "https://github.com/hongquan/single-version/commit/0cdf9795cb0522e90a8dc00306f1ff7bb85621ad.patch";
hash = "sha256-eT9G1XvkNF0+NKgx+yN7ei53xIEMvnc7V/KtPLqlWik=";
})
];
nativeBuildInputs = [ poetry-core ];