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