depot/third_party/nixpkgs/pkgs/development/python-modules/snscrape/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

38 lines
818 B
Nix

{ lib
, buildPythonPackage
, isPy3k
, fetchPypi
, setuptools_scm
, setuptools
, requests
, lxml
, beautifulsoup4
}:
buildPythonPackage rec {
pname = "snscrape";
version = "0.3.1";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "11jv5mv3l11qjlsjihd74gc1jafq0i7360cksqjkx1wv2hcc32rf";
};
# There are no tests; make sure the executable works.
checkPhase = ''
export PATH=$PATH:$out/bin
snscrape --help
'';
nativeBuildInputs = [ setuptools_scm ];
propagatedBuildInputs = [ setuptools 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 ];
};
}