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-04-21 15:54:59 +00:00
|
|
|
version = "4.11";
|
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-04-21 15:54:59 +00:00
|
|
|
sha256 = "sha256-EqE184tYW815Hp42EB5g0l9f5AWpYSqH+cY4z4zsCSQ=";
|
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
|
|
|
};
|
|
|
|
}
|