nixpkgs-suyu/pkgs/development/python-modules/snscrape/default.nix

36 lines
733 B
Nix
Raw Normal View History

2018-12-24 11:42:06 +01:00
{ lib
, buildPythonPackage
, isPy3k
, fetchPypi
, requests
, lxml
, beautifulsoup4
}:
buildPythonPackage rec {
pname = "snscrape";
2019-04-21 23:29:48 +02:00
version = "0.2.0";
2018-12-24 11:42:06 +01:00
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
2019-04-21 23:29:48 +02:00
sha256 = "02mlpzkvpl2mv30cknq6ngw02y7gj2614qikq25ncrpg5vb903d9";
2018-12-24 11:42:06 +01:00
};
# There are no tests; make sure the executable works.
checkPhase = ''
export PATH=$PATH:$out/bin
snscrape --help
'';
propagatedBuildInputs = [ requests lxml beautifulsoup4 ];
meta = with lib; {
homepage = https://github.com/JustAnotherArchivist/snscrape;
description = "A social networking service scraper in Python";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ ivan ];
};
}