blob: 19b7c42558ec9a17172ba343eca6c82ff9f2c8ec (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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 ];
};
}
|