Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 2b4753182e6f
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: e48d9e687162
Choose a head ref
  • 4 commits
  • 4 files changed
  • 2 contributors

Commits on Jan 20, 2020

  1. Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    Mic92 Jörg Thalheim
    Copy the full SHA
    89d1275 View commit details
  2. Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    Mic92 Jörg Thalheim
    Copy the full SHA
    17a3674 View commit details

Commits on Jan 21, 2020

  1. snitun: fix macOS build

    Mic92 committed Jan 21, 2020

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    Mic92 Jörg Thalheim
    Copy the full SHA
    1d24ce5 View commit details
  2. home-assistant: add icloud support (#78109)

    home-assistant: add icloud support
    Mic92 authored Jan 21, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    e48d9e6 View commit details
51 changes: 51 additions & 0 deletions pkgs/development/python-modules/pyicloud/default.nix
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 ];
};
}
5 changes: 3 additions & 2 deletions pkgs/development/python-modules/snitun/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, buildPythonPackage, python, fetchFromGitHub, attrs, cryptography, async-timeout, pytest-aiohttp, pytest }:
{ lib, stdenv, buildPythonPackage, python, fetchFromGitHub, attrs, cryptography, async-timeout, pytest-aiohttp, pytest }:

buildPythonPackage rec {
pname = "snitun";
@@ -16,7 +16,8 @@ buildPythonPackage rec {
checkInputs = [ pytest pytest-aiohttp ];

checkPhase = ''
pytest tests/
# https://github.com/NabuCasa/snitun/issues/61
pytest ${lib.optionalString stdenv.isDarwin "-k 'not test_multiplexer_data_channel_abort_full'"} tests/
'';

meta = with lib; {
2 changes: 1 addition & 1 deletion pkgs/servers/home-assistant/component-packages.nix
Original file line number Diff line number Diff line change
@@ -339,7 +339,7 @@
"hyperion" = ps: with ps; [ ];
"ialarm" = ps: with ps; [ ];
"iaqualink" = ps: with ps; [ ];
"icloud" = ps: with ps; [ ];
"icloud" = ps: with ps; [ pyicloud ];
"idteck_prox" = ps: with ps; [ ];
"ifttt" = ps: with ps; [ aiohttp-cors pyfttt ];
"iglo" = ps: with ps; [ ];
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
@@ -948,6 +948,8 @@ in {

pdfx = callPackage ../development/python-modules/pdfx { };

pyicloud = callPackage ../development/python-modules/pyicloud { };

pyperf = callPackage ../development/python-modules/pyperf { };

pefile = callPackage ../development/python-modules/pefile { };