15 buildPythonPackage rec {
17 version = "0.7.0.20230622";
20 disabled = pythonOlder "3.8";
22 src = fetchFromGitHub {
23 owner = "JustAnotherArchivist";
26 hash = "sha256-9xAUMr1SWFePEvIz6DFEexk9Txex3u8wPNfMAdxEUCA=";
30 # Fix find_module deprecation, https://github.com/JustAnotherArchivist/snscrape/pull/1036
32 name = "fix-find-module.patch";
33 url = "https://github.com/JustAnotherArchivist/snscrape/commit/7f4717aaaaa8d4c96fa1dbe72ded799a722732ee.patch";
34 hash = "sha256-6O9bZ5GlTPuR0MML/O4DDRBcDX/CJbU54ZE551cfPHo=";
38 build-system = [ setuptools-scm ];
47 ++ requests.optional-dependencies.socks
48 ++ lib.optionals (pythonOlder "3.9") [ pytz ];
50 # There are no tests; make sure the executable works.
52 export PATH=$PATH:$out/bin
56 pythonImportsCheck = [ "snscrape" ];
59 description = "Social networking service scraper";
60 homepage = "https://github.com/JustAnotherArchivist/snscrape";
61 license = licenses.gpl3Plus;
62 maintainers = with maintainers; [ ivan ];
63 mainProgram = "snscrape";