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