os/overlays/python-wiki-fetch.nix

27 lines
583 B
Nix

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 = "b946b4d8c9bbe6d62fa8c95ad284e1fc9665caf2";
sha256 = "sha256-zs32iAEoRudO1dpRQpghmJM94+FF/N13H31Shqqp71Y=";
};
checkPhase = ''
cd test
${python.interpreter} test.py
'';
propagatedBuildInputs = [
beautifulsoup4
requests
wheel
];
patches = ./python-wiki-fetch.patch;
};
}