2022-02-25 12:31:45 +00:00
|
|
|
final: prev: with prev.python39Packages; {
|
|
|
|
python-wiki-fetch = buildPythonPackage rec {
|
2022-02-27 17:14:59 +00:00
|
|
|
pname = "wik";
|
|
|
|
version = "1.2.0";
|
2022-02-25 12:31:45 +00:00
|
|
|
|
|
|
|
src = prev.fetchFromGitHub {
|
|
|
|
owner = "yashsinghcodes";
|
2022-02-27 17:14:59 +00:00
|
|
|
repo = pname;
|
|
|
|
rev = "b226c5d80735f419db4d641f80d8a4c99bd826d8";
|
|
|
|
sha256 = "sha256-SW0G6sHggVPFZ1NHgMDmdOEjt06xdb5QfxL3fnhQiZs=";
|
2022-02-25 12:31:45 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
cd test
|
|
|
|
${python.interpreter} test.py
|
|
|
|
'';
|
|
|
|
|
2022-02-27 17:14:59 +00:00
|
|
|
format = "flit";
|
|
|
|
|
2022-02-25 12:31:45 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
beautifulsoup4
|
|
|
|
requests
|
|
|
|
];
|
2022-02-27 17:24:08 +00:00
|
|
|
|
|
|
|
meta = with prev.lib; {
|
|
|
|
description = "query wikipedia articles from your terminal";
|
|
|
|
homepage = "https://github.com/yashsinghcodes/wik";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ teutat3s ];
|
|
|
|
};
|
2022-02-25 12:31:45 +00:00
|
|
|
};
|
|
|
|
}
|