15 buildPythonPackage rec {
17 version = "0.7.0.20230622";
20 disabled = pythonOlder "3.8";
22 src = fetchFromGitHub {
23 owner = "JustAnotherArchivist";
25 rev = "refs/tags/v${version}";
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 ];
45 ] ++ requests.optional-dependencies.socks ++ lib.optionals (pythonOlder "3.9") [ pytz ];
47 # There are no tests; make sure the executable works.
49 export PATH=$PATH:$out/bin
53 pythonImportsCheck = [ "snscrape" ];
56 description = "Social networking service scraper";
57 homepage = "https://github.com/JustAnotherArchivist/snscrape";
58 license = licenses.gpl3Plus;
59 maintainers = with maintainers; [ ivan ];
60 mainProgram = "snscrape";