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,38 @@
{ lib, fetchFromGitHub, python3Packages }:
python3Packages.buildPythonApplication rec {
pname = "rpl";
version = "1.10";
# Tests not included in pip package.
doCheck = false;
src = fetchFromGitHub {
owner = "rrthomas";
repo = "rpl";
rev = "4467bd46a7a798f738247a7f090c1505176bd597";
sha256 = "0yf3pc3fws4nnh4nd8d3jpglmsyi69d17qqgpcnkpqca5l4cd25w";
};
patches = [
./remove-argparse-manpage.diff # quickfix for ImportError: No module named build_manpages.build_manpages
];
buildInputs = [
#python3Packages.argparse-manpage # TODO
python3Packages.chardet
];
installPhase = ''
mkdir -p $out/bin
mv rpl $out/bin
'';
meta = with lib; {
description = "Replace strings in files";
homepage = "https://github.com/rrthomas/rpl";
license = licenses.gpl2;
maintainers = with maintainers; [ teto ];
};
}

View file

@ -0,0 +1,27 @@
diff --git a/setup.cfg b/setup.cfg
index 12e9198..38e5376 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -15,7 +15,6 @@ classifiers =
[options]
scripts = rpl
python_requires = >=3
-setup_requires = argparse-manpage
install_requires = chardet
[options.extras_require]
diff --git a/setup.py b/setup.py
index 96cade6..879fc44 100644
--- a/setup.py
+++ b/setup.py
@@ -1,9 +1,8 @@
-from build_manpages.build_manpages import get_install_cmd
from setuptools import setup
from setuptools.command.install import install
setup(
cmdclass={
- 'install': get_install_cmd(install),
+ 'install': install,
}
)