depot/third_party/nixpkgs/pkgs/development/python-modules/pysychonaut/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

40 lines
822 B
Nix

{
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;
};
}