pub-solar-os/overlays/python-wik.nix

33 lines
776 B
Nix
Raw Normal View History

2022-02-25 12:31:45 +00:00
final: prev: with prev.python39Packages; {
python-wiki-fetch = buildPythonPackage rec {
pname = "wik";
version = "1.2.0";
2022-02-25 12:31:45 +00:00
src = prev.fetchFromGitHub {
owner = "yashsinghcodes";
repo = pname;
rev = "b226c5d80735f419db4d641f80d8a4c99bd826d8";
sha256 = "sha256-SW0G6sHggVPFZ1NHgMDmdOEjt06xdb5QfxL3fnhQiZs=";
2022-02-25 12:31:45 +00:00
};
checkPhase = ''
cd test
${python.interpreter} test.py
'';
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
};
}