terminal-life: rename wiki-fetch to wik

This commit is contained in:
teutat3s 2022-02-27 18:14:59 +01:00
parent 4455f8e5f0
commit 286c8d9ead
Signed by untrusted user: teutat3s
GPG key ID: 4FA1D3FA524F22C1
2 changed files with 7 additions and 40 deletions

View file

@ -1,13 +1,13 @@
final: prev: with prev.python39Packages; {
python-wiki-fetch = buildPythonPackage rec {
pname = "fetch";
version = "unstable-2022-02-25";
pname = "wik";
version = "1.2.0";
src = prev.fetchFromGitHub {
owner = "yashsinghcodes";
repo = "fetch";
rev = "b946b4d8c9bbe6d62fa8c95ad284e1fc9665caf2";
sha256 = "sha256-zs32iAEoRudO1dpRQpghmJM94+FF/N13H31Shqqp71Y=";
repo = pname;
rev = "b226c5d80735f419db4d641f80d8a4c99bd826d8";
sha256 = "sha256-SW0G6sHggVPFZ1NHgMDmdOEjt06xdb5QfxL3fnhQiZs=";
};
checkPhase = ''
@ -15,12 +15,11 @@ final: prev: with prev.python39Packages; {
${python.interpreter} test.py
'';
format = "flit";
propagatedBuildInputs = [
beautifulsoup4
requests
wheel
];
patches = ./python-wiki-fetch.patch;
};
}

View file

@ -1,32 +0,0 @@
--- a/setup.py
+++ b/setup.py
@@ -3,13 +3,6 @@ from os import name, path
from sys import version
import setuptools
-req_pkgs = [
- 'bs4',
- 'requests',
- 'wheel'
-]
-
-
with open("README.md","r") as f:
long_description = f.read()
@@ -25,7 +18,7 @@ setuptools.setup(
packages = setuptools.find_packages(),
entry_points={
'console_scripts': [
- 'fetch=fetch.fetch:arguments',
+ 'wiki=fetch.fetch:arguments',
]
},
python_requires='>=3.*',
@@ -36,6 +29,4 @@ setuptools.setup(
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
],
- install_requires=req_pkgs,
- setup_requires=req_pkgs,
)