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

39 lines
830 B
Nix
Raw Normal View History

2018-12-24 11:42:06 +01:00
{ lib
, buildPythonPackage
, isPy3k
, fetchPypi
2019-07-01 21:32:16 +02:00
, setuptools_scm
, setuptools
2018-12-24 11:42:06 +01:00
, requests
, lxml
, beautifulsoup4
}:
buildPythonPackage rec {
pname = "snscrape";
2020-07-31 10:56:46 +02:00
version = "0.3.4";
2018-12-24 11:42:06 +01:00
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
2020-07-31 10:56:46 +02:00
sha256 = "36ba7f95c8bf5202749189f760e591952f19c849379c35ff598aafafe5d0cfef";
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
'';
2019-07-01 21:32:16 +02:00
nativeBuildInputs = [ setuptools_scm ];
propagatedBuildInputs = [ setuptools requests lxml beautifulsoup4 ];
2018-12-24 11:42:06 +01:00
meta = with lib; {
2020-04-01 06:59:09 +02:00
homepage = "https://github.com/JustAnotherArchivist/snscrape";
2018-12-24 11:42:06 +01:00
description = "A social networking service scraper in Python";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ ivan ];
};
}