pythonPackages.wikipedia: init at 1.4.0
This commit is contained in:
parent
889dbe96d5
commit
ce50875fd4
2 changed files with 39 additions and 0 deletions
37
pkgs/development/python-modules/wikipedia/default.nix
Normal file
37
pkgs/development/python-modules/wikipedia/default.nix
Normal file
|
@ -0,0 +1,37 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, beautifulsoup4
|
||||
, requests
|
||||
, python
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "wikipedia";
|
||||
version = "1.4.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "db0fad1829fdd441b1852306e9856398204dc0786d2996dd2e0c8bb8e26133b2";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
beautifulsoup4
|
||||
requests
|
||||
];
|
||||
|
||||
checkPhase = ''
|
||||
runHook preCheck
|
||||
|
||||
${python.interpreter} -m unittest discover tests/ '*test.py'
|
||||
|
||||
runHook postCheck
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Wikipedia API for Python";
|
||||
homepage = https://github.com/goldsmith/Wikipedia;
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.worldofpeace ];
|
||||
};
|
||||
}
|
|
@ -4434,6 +4434,8 @@ in {
|
|||
|
||||
wordfreq = callPackage ../development/python-modules/wordfreq { };
|
||||
|
||||
wikipedia = callPackage ../development/python-modules/wikipedia { };
|
||||
|
||||
magic-wormhole = callPackage ../development/python-modules/magic-wormhole { };
|
||||
|
||||
magic-wormhole-mailbox-server = callPackage ../development/python-modules/magic-wormhole-mailbox-server { };
|
||||
|
|
Loading…
Reference in a new issue