snscrape: 0.3.4 -> unstable-2021-08-30
This commit is contained in:
parent
7c4c61335c
commit
6b0b9774e2
@ -1,33 +1,48 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
|
||||||
, isPy3k
|
|
||||||
, fetchPypi
|
|
||||||
, setuptools-scm
|
|
||||||
, setuptools
|
|
||||||
, requests
|
|
||||||
, lxml
|
|
||||||
, beautifulsoup4
|
, beautifulsoup4
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, lxml
|
||||||
|
, pythonOlder
|
||||||
|
, pytz
|
||||||
|
, requests
|
||||||
|
, setuptools-scm
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "snscrape";
|
pname = "snscrape";
|
||||||
version = "0.3.4";
|
version = "unstable-2021-08-30";
|
||||||
|
|
||||||
disabled = !isPy3k;
|
disabled = pythonOlder "3.8";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchFromGitHub {
|
||||||
inherit pname version;
|
owner = "JustAnotherArchivist";
|
||||||
sha256 = "36ba7f95c8bf5202749189f760e591952f19c849379c35ff598aafafe5d0cfef";
|
repo = pname;
|
||||||
|
rev = "c76f1637ce1d7a154af83495b67ead2559cd5715";
|
||||||
|
sha256 = "01x4961fxj1p98y6fcyxw5sv8fa87x41fdx9p31is12bdkmqxi6v";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
setuptools-scm
|
||||||
|
];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
beautifulsoup4
|
||||||
|
lxml
|
||||||
|
requests
|
||||||
|
] ++ lib.optionals (pythonOlder "3.9") [
|
||||||
|
pytz
|
||||||
|
];
|
||||||
|
|
||||||
# There are no tests; make sure the executable works.
|
# There are no tests; make sure the executable works.
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
export PATH=$PATH:$out/bin
|
export PATH=$PATH:$out/bin
|
||||||
snscrape --help
|
snscrape --help
|
||||||
'';
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [ setuptools-scm ];
|
pythonImportsCheck = [ "snscrape" ];
|
||||||
propagatedBuildInputs = [ setuptools requests lxml beautifulsoup4 ];
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/JustAnotherArchivist/snscrape";
|
homepage = "https://github.com/JustAnotherArchivist/snscrape";
|
||||||
|
Loading…
Reference in New Issue
Block a user