forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
home-assistant: add icloud support (NixOS#78109)
home-assistant: add icloud support
- Loading branch information
Showing
4 changed files
with
57 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{ lib | ||
, buildPythonPackage | ||
, fetchPypi | ||
, requests | ||
, keyring | ||
, keyrings-alt | ||
, click | ||
, six | ||
, tzlocal | ||
, certifi | ||
, bitstring | ||
, unittest2 | ||
}: | ||
|
||
buildPythonPackage rec { | ||
pname = "pyicloud"; | ||
version = "0.9.1"; | ||
|
||
src = fetchPypi { | ||
inherit pname version; | ||
sha256 = "580b52e95f67a41ed86c56a514aa2b362f53fbaf23f16c69fb24e0d19fd373ee"; | ||
}; | ||
|
||
propagatedBuildInputs = [ | ||
requests | ||
keyring | ||
keyrings-alt | ||
click | ||
six | ||
tzlocal | ||
certifi | ||
bitstring | ||
]; | ||
|
||
checkInputs = [ unittest2 ]; | ||
|
||
postPatch = '' | ||
sed -i \ | ||
-e 's!click>=6.0,<7.0!click!' \ | ||
-e 's!keyring>=8.0,<9.0!keyring!' \ | ||
-e 's!keyrings.alt>=1.0,<2.0!keyrings.alt!' \ | ||
requirements.txt | ||
''; | ||
|
||
meta = with lib; { | ||
description = "PyiCloud is a module which allows pythonistas to interact with iCloud webservices"; | ||
homepage = https://github.com/picklepete/pyicloud; | ||
license = licenses.mit; | ||
maintainers = [ maintainers.mic92 ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters