about summary refs log tree commit diff
path: root/pkgs/development/python-modules/pysychonaut/default.nix
blob: a0335d886af1f493fa0ea965113c8aab68833703 (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
38
39
40
{
  lib,
  buildPythonPackage,
  fetchPypi,
  requests,
  requests-cache,
  beautifulsoup4,
}:

buildPythonPackage rec {
  pname = "pysychonaut";
  version = "0.6.0";

  src = fetchPypi {
    pname = "PySychonaut";
    inherit version;
    sha256 = "1wgk445gmi0x7xmd8qvnyxy1ka0n72fr6nrhzdm29q6687dqyi7h";
  };

  preConfigure = ''
    substituteInPlace setup.py --replace "bs4" "beautifulsoup4"
  '';

  propagatedBuildInputs = [
    requests
    requests-cache
    beautifulsoup4
  ];

  # No tests available
  doCheck = false;
  pythonImportsCheck = [ "pysychonaut" ];

  meta = with lib; {
    description = "Unofficial python api for Erowid, PsychonautWiki and AskTheCaterpillar";
    homepage = "https://github.com/OpenJarbas/PySychonaut";
    maintainers = [ maintainers.ivar ];
    license = licenses.asl20;
  };
}