os/overlays/python-wik.nix

33 lines
804 B
Nix

final: prev: with prev.python310Packages; {
python-wiki-fetch = buildPythonPackage rec {
pname = "wik-unstable";
version = "2022-03-04";
src = prev.fetchFromGitHub {
owner = "yashsinghcodes";
repo = "wik";
rev = "aca76040770543a55b8fb0574901bf52df099c34";
sha256 = "sha256-qFNRzgXFyOgIvtNKR+7NG5lvQObjgezfRaloA7VH9Lc=";
};
checkPhase = ''
cd test
${python.interpreter} test.py
'';
format = "flit";
propagatedBuildInputs = [
beautifulsoup4
requests
];
meta = with prev.lib; {
description = "wik is a tool to view wikipedia pages from your terminal";
homepage = "https://github.com/yashsinghcodes/wik";
license = licenses.mit;
maintainers = with maintainers; [ teutat3s ];
};
};
}