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,31 @@
{ lib
, buildPythonPackage
, fetchPypi
, pyasn1
, pycryptodomex
, pysmi
}:
buildPythonPackage rec {
pname = "pysnmp";
version = "4.4.12";
src = fetchPypi {
inherit pname version;
sha256 = "1acbfvpbr45i137s00mbhh21p71ywjfw3r8z0ybcmjjqz7rbwg8c";
};
patches = [ ./setup.py-Fix-the-setuptools-version-check.patch ];
# NameError: name 'mibBuilder' is not defined
doCheck = false;
propagatedBuildInputs = [ pyasn1 pycryptodomex pysmi ];
meta = with lib; {
homepage = "http://snmplabs.com/pysnmp/index.html";
description = "A pure-Python SNMPv1/v2c/v3 library";
license = licenses.bsd2;
maintainers = with maintainers; [ primeos koral ];
};
}

View file

@ -0,0 +1,27 @@
From 5f843f7c8554e2feab7f57d8718231408196fd80 Mon Sep 17 00:00:00 2001
From: Michael Weiss <dev.primeos@gmail.com>
Date: Fri, 1 Nov 2019 18:47:14 +0100
Subject: [PATCH] setup.py: Fix the setuptools version check
This broke the Nix build after setuptools.__version__ changed from
"41.2.0" to "41.4.0.post20191022".
---
setup.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/setup.py b/setup.py
index 0d987d5c..4f625d7c 100644
--- a/setup.py
+++ b/setup.py
@@ -63,7 +63,7 @@ try:
setup, Command = setuptools.setup, setuptools.Command
- observed_version = [int(x) for x in setuptools.__version__.split('.')]
+ observed_version = [int(x) for x in setuptools.__version__.split('.')[0:3]]
required_version = [36, 2, 0]
# NOTE(etingof): require fresh setuptools to build proper wheels
--
2.23.0