This repository has been archived on 2024-10-13. You can view files and clone it, but cannot push or open issues or pull requests.
nix-packages/python/instagram.nix
2022-11-02 16:02:53 +01:00

35 lines
726 B
Nix

{
buildPythonPackage,
fetchFromGitHub,
httplib2,
simplejson,
six,
pytz,
lib,
}: let
source = builtins.fromJSON (builtins.readFile ./instagram.json);
in
buildPythonPackage {
name = "instagram";
version = source.date;
src = fetchFromGitHub {
owner = "foozmeat";
repo = "python-instagram";
inherit (source) rev sha256;
};
propagatedBuildInputs = [
httplib2
simplejson
six
pytz
];
meta = {
description = "Python Client for Instagram API";
license = lib.licenses.bsd3;
};
passthru.updateScript = [
../scripts/update-git.sh
"https://github.com/foozmeat/python-instagram"
"python/instagram.json"
];
}