Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.03 733 B view raw
1{ lib 2, buildPythonPackage 3, isPy3k 4, fetchPypi 5, requests 6, lxml 7, beautifulsoup4 8}: 9 10buildPythonPackage rec { 11 pname = "snscrape"; 12 version = "0.1.3"; 13 14 disabled = !isPy3k; 15 16 src = fetchPypi { 17 inherit pname version; 18 sha256 = "1mnhqqc7xfwg2wrzpj1pjbcisjjwxrgmy21f53p80xbx2iz8b9n1"; 19 }; 20 21 # There are no tests; make sure the executable works. 22 checkPhase = '' 23 export PATH=$PATH:$out/bin 24 snscrape --help 25 ''; 26 27 propagatedBuildInputs = [ requests lxml beautifulsoup4 ]; 28 29 meta = with lib; { 30 homepage = https://github.com/JustAnotherArchivist/snscrape; 31 description = "A social networking service scraper in Python"; 32 license = licenses.gpl3Plus; 33 maintainers = with maintainers; [ ivan ]; 34 }; 35}