rpl: 1.10 -> 1.15.5

- remove argparse manpage patch
- install man page
- run tests
This commit is contained in:
Claudio Bley 2024-02-21 20:56:10 +01:00
parent bd1ab1222f
commit 8a7bd071c8
2 changed files with 18 additions and 47 deletions

View file

@ -1,38 +1,36 @@
{ lib, fetchFromGitHub, python3Packages }:
{ lib, fetchPypi, python3Packages }:
python3Packages.buildPythonApplication rec {
pname = "rpl";
version = "1.10";
version = "1.15.5";
# Tests not included in pip package.
doCheck = false;
pyproject = true;
src = fetchFromGitHub {
owner = "rrthomas";
repo = "rpl";
rev = "4467bd46a7a798f738247a7f090c1505176bd597";
sha256 = "0yf3pc3fws4nnh4nd8d3jpglmsyi69d17qqgpcnkpqca5l4cd25w";
src = fetchPypi {
inherit pname version;
hash = "sha256-rhPS+hwbjqq3X/V1bL6pzGg2tVxBkeMyUhaCvmneG4M=";
};
patches = [
./remove-argparse-manpage.diff # quickfix for ImportError: No module named build_manpages.build_manpages
nativeBuildInputs = [
python3Packages.setuptools
];
nativeCheckInputs = [
python3Packages.pytest-datafiles
python3Packages.pytestCheckHook
];
propagatedBuildInputs = [
#python3Packages.argparse-manpage # TODO
python3Packages.argparse-manpage
python3Packages.chainstream
python3Packages.chardet
python3Packages.regex
];
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;
homepage = "https://github.com/rrthomas/rpl";
license = licenses.gpl2;
maintainers = with maintainers; [ teto ];
};
}

View file

@ -1,27 +0,0 @@
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,
}
)