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

36 lines
726 B
Nix
Raw Normal View History

2022-11-02 15:02:53 +00:00
{
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"
];
}