depot/third_party/nixpkgs/pkgs/tools/misc/instaloader/default.nix
Default email 23b612e36f Project import generated by Copybara.
GitOrigin-RevId: ae5c332cbb5827f6b1f02572496b141021de335f
2024-01-25 23:12:00 +09:00

42 lines
860 B
Nix

{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, setuptools
, sphinx
, requests
}:
buildPythonPackage rec {
pname = "instaloader";
version = "4.10.3";
format = "pyproject";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "instaloader";
repo = "instaloader";
rev = "refs/tags/v${version}";
sha256 = "sha256-+K15MlyOONC5E8ZjtzbYnGGzQEMDGEGBFDbLZp7FeWQ=";
};
nativeBuildInputs = [
setuptools
];
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;
mainProgram = "instaloader";
};
}