forked from pub-solar/os
terminal-life: add python-wiki-fetch
This commit is contained in:
parent
6dcbd42a56
commit
a188dc9c6e
|
@ -35,6 +35,7 @@ in
|
|||
mdbook-multilang
|
||||
nnn
|
||||
powerline
|
||||
python-wiki-fetch
|
||||
vifm
|
||||
watson
|
||||
];
|
||||
|
|
26
overlays/python-wiki-fetch.nix
Normal file
26
overlays/python-wiki-fetch.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
final: prev: with prev.python39Packages; {
|
||||
python-wiki-fetch = buildPythonPackage rec {
|
||||
pname = "fetch";
|
||||
version = "unstable-2022-02-25";
|
||||
|
||||
src = prev.fetchFromGitHub {
|
||||
owner = "yashsinghcodes";
|
||||
repo = "fetch";
|
||||
rev = "3a490a2c2f0b6d2491397fe77939e850056963fd";
|
||||
sha256 = "sha256-VsZ8YEXZOIf3UbPmJSn84DYaINavLXCzC0nUOqkvOh4=";
|
||||
};
|
||||
|
||||
checkPhase = ''
|
||||
cd test
|
||||
${python.interpreter} test.py
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
beautifulsoup4
|
||||
requests
|
||||
wheel
|
||||
];
|
||||
|
||||
patches = ./python-wiki-fetch.patch;
|
||||
};
|
||||
}
|
32
overlays/python-wiki-fetch.patch
Normal file
32
overlays/python-wiki-fetch.patch
Normal file
|
@ -0,0 +1,32 @@
|
|||
--- 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