uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead

https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948
this can do it nicely.

Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
Anton Arapov 2021-04-03 12:58:10 +02:00 committed by Alan Daniels
commit 56de2bcd43
30691 changed files with 3076956 additions and 0 deletions

View file

@ -0,0 +1,21 @@
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

@ -0,0 +1,31 @@
{ lib, buildPythonPackage, fetchFromGitHub, poetry-core, pytestCheckHook }:
buildPythonPackage rec {
pname = "single-version";
version = "1.5.1";
format = "pyproject";
src = fetchFromGitHub {
owner = "hongquan";
repo = pname;
rev = "v${version}";
sha256 = "sha256-I8ATQzPRH9FVjqPoqrNjYMBU5azpmkLjRmHcz943C10=";
};
patches = [
./0001-set-poetry-core.patch
];
nativeBuildInputs = [ poetry-core ];
checkInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "single_version" ];
meta = with lib; {
description = "Utility to let you have a single source of version in your code base";
homepage = "https://github.com/hongquan/single-version";
license = licenses.mit;
maintainers = with maintainers; [ wolfangaukang ];
};
}