forked from pub-solar/os
terminal-life: rename wiki-fetch to wik
This commit is contained in:
parent
4455f8e5f0
commit
286c8d9ead
|
@ -1,13 +1,13 @@
|
||||||
final: prev: with prev.python39Packages; {
|
final: prev: with prev.python39Packages; {
|
||||||
python-wiki-fetch = buildPythonPackage rec {
|
python-wiki-fetch = buildPythonPackage rec {
|
||||||
pname = "fetch";
|
pname = "wik";
|
||||||
version = "unstable-2022-02-25";
|
version = "1.2.0";
|
||||||
|
|
||||||
src = prev.fetchFromGitHub {
|
src = prev.fetchFromGitHub {
|
||||||
owner = "yashsinghcodes";
|
owner = "yashsinghcodes";
|
||||||
repo = "fetch";
|
repo = pname;
|
||||||
rev = "b946b4d8c9bbe6d62fa8c95ad284e1fc9665caf2";
|
rev = "b226c5d80735f419db4d641f80d8a4c99bd826d8";
|
||||||
sha256 = "sha256-zs32iAEoRudO1dpRQpghmJM94+FF/N13H31Shqqp71Y=";
|
sha256 = "sha256-SW0G6sHggVPFZ1NHgMDmdOEjt06xdb5QfxL3fnhQiZs=";
|
||||||
};
|
};
|
||||||
|
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
|
@ -15,12 +15,11 @@ final: prev: with prev.python39Packages; {
|
||||||
${python.interpreter} test.py
|
${python.interpreter} test.py
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
format = "flit";
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
beautifulsoup4
|
beautifulsoup4
|
||||||
requests
|
requests
|
||||||
wheel
|
|
||||||
];
|
];
|
||||||
|
|
||||||
patches = ./python-wiki-fetch.patch;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
|
@ -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,
|
|
||||||
)
|
|
Loading…
Reference in a new issue