mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
43 lines
860 B
Nix
43 lines
860 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, fetchFromGitHub
|
|
, setuptools
|
|
, sphinx
|
|
, requests
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "instaloader";
|
|
version = "4.13.2";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "instaloader";
|
|
repo = "instaloader";
|
|
rev = "refs/tags/v${version}";
|
|
sha256 = "sha256-ysyHCdgednd+cddcXDmEIY1RO8RPHTDitj4NT1IpE8Y=";
|
|
};
|
|
|
|
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";
|
|
};
|
|
}
|