2022-08-21 13:32:41 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, pythonOlder
|
|
|
|
, fetchFromGitHub
|
2024-01-13 08:15:51 +00:00
|
|
|
, setuptools
|
2022-08-21 13:32:41 +00:00
|
|
|
, sphinx
|
|
|
|
, requests
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "instaloader";
|
2024-10-29 11:11:06 +00:00
|
|
|
version = "4.13.2";
|
2022-08-21 13:32:41 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "instaloader";
|
|
|
|
repo = "instaloader";
|
2022-09-09 14:08:57 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-10-29 11:11:06 +00:00
|
|
|
sha256 = "sha256-ysyHCdgednd+cddcXDmEIY1RO8RPHTDitj4NT1IpE8Y=";
|
2022-08-21 13:32:41 +00:00
|
|
|
};
|
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2022-08-21 13:32:41 +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;
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "instaloader";
|
2022-08-21 13:32:41 +00:00
|
|
|
};
|
|
|
|
}
|