2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
requests,
|
|
|
|
requests-cache,
|
|
|
|
beautifulsoup4,
|
|
|
|
}:
|
2020-12-29 15:07:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2024-04-21 15:54:59 +00:00
|
|
|
pname = "pysychonaut";
|
2020-12-29 15:07:52 +00:00
|
|
|
version = "0.6.0";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
2024-04-21 15:54:59 +00:00
|
|
|
pname = "PySychonaut";
|
|
|
|
inherit version;
|
2020-12-29 15:07:52 +00:00
|
|
|
sha256 = "1wgk445gmi0x7xmd8qvnyxy1ka0n72fr6nrhzdm29q6687dqyi7h";
|
|
|
|
};
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
substituteInPlace setup.py --replace "bs4" "beautifulsoup4"
|
|
|
|
'';
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
|
|
|
requests-cache
|
|
|
|
beautifulsoup4
|
|
|
|
];
|
2020-12-29 15:07:52 +00:00
|
|
|
|
|
|
|
# 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";
|
2024-07-01 15:47:52 +00:00
|
|
|
maintainers = [ ];
|
2020-12-29 15:07:52 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|