1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 requests,
6 requests-cache,
7 beautifulsoup4,
8}:
9
10buildPythonPackage rec {
11 pname = "pysychonaut";
12 version = "0.6.0";
13
14 src = fetchPypi {
15 pname = "PySychonaut";
16 inherit version;
17 sha256 = "1wgk445gmi0x7xmd8qvnyxy1ka0n72fr6nrhzdm29q6687dqyi7h";
18 };
19
20 preConfigure = ''
21 substituteInPlace setup.py --replace "bs4" "beautifulsoup4"
22 '';
23
24 propagatedBuildInputs = [
25 requests
26 requests-cache
27 beautifulsoup4
28 ];
29
30 # No tests available
31 doCheck = false;
32 pythonImportsCheck = [ "pysychonaut" ];
33
34 meta = with lib; {
35 description = "Unofficial python api for Erowid, PsychonautWiki and AskTheCaterpillar";
36 homepage = "https://github.com/OpenJarbas/PySychonaut";
37 maintainers = [ maintainers.ivar ];
38 license = licenses.asl20;
39 };
40}