diff --git a/pkgs/development/python-modules/pysychonaut/default.nix b/pkgs/development/python-modules/pysychonaut/default.nix new file mode 100644 index 000000000000..ae05070e76d7 --- /dev/null +++ b/pkgs/development/python-modules/pysychonaut/default.nix @@ -0,0 +1,28 @@ +{ lib, buildPythonPackage, fetchPypi, requests, requests-cache, beautifulsoup4 }: + +buildPythonPackage rec { + pname = "PySychonaut"; + version = "0.6.0"; + + src = fetchPypi { + inherit pname 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; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 3d8980eb8add..dc30b6bbce4e 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5472,6 +5472,8 @@ in { pysvn = callPackage ../development/python-modules/pysvn { }; + pysychonaut = callPackage ../development/python-modules/pysychonaut { }; + pytabix = callPackage ../development/python-modules/pytabix { }; pytado = callPackage ../development/python-modules/pytado { };