2022-07-09 12:12:18 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, pythonOlder
|
|
|
|
, fetchFromGitHub
|
2023-12-17 22:41:24 +00:00
|
|
|
, setuptools
|
2022-07-09 12:12:18 +00:00
|
|
|
, sphinx
|
|
|
|
, requests
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "instaloader";
|
2024-01-19 00:57:40 +00:00
|
|
|
version = "4.10.3";
|
2022-07-09 12:12:18 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "instaloader";
|
|
|
|
repo = "instaloader";
|
2022-08-19 13:47:06 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-01-19 00:57:40 +00:00
|
|
|
sha256 = "sha256-+K15MlyOONC5E8ZjtzbYnGGzQEMDGEGBFDbLZp7FeWQ=";
|
2022-07-09 12:12:18 +00:00
|
|
|
};
|
|
|
|
|
2023-12-17 22:41:24 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2022-07-09 12:12:18 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
|
|
|
sphinx
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "instaloader" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://instaloader.github.io/";
|
|
|
|
description = "Download pictures (or videos) along with their captions and other metadata from Instagram";
|
|
|
|
maintainers = with maintainers; [ creator54 ];
|
|
|
|
license = licenses.mit;
|
2023-11-27 01:17:53 +00:00
|
|
|
mainProgram = "instaloader";
|
2022-07-09 12:12:18 +00:00
|
|
|
};
|
|
|
|
}
|