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: ef2031c419d6
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 0b2d5b9c7547
Choose a head ref
  • 2 commits
  • 1 file changed
  • 1 contributor

Commits on Nov 20, 2020

  1. python-miio: fix

    (cherry picked from commit 79e81e8)
    flyfloh authored and Jonathan Ringer committed Nov 20, 2020

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    Copy the full SHA
    3c04400 View commit details
  2. python-miio: unmark as broken

    flyfloh authored and Jonathan Ringer committed Nov 20, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    0b2d5b9 View commit details
Showing with 15 additions and 3 deletions.
  1. +15 −3 pkgs/development/python-modules/python-miio/default.nix
18 changes: 15 additions & 3 deletions pkgs/development/python-modules/python-miio/default.nix
Original file line number Diff line number Diff line change
@@ -4,15 +4,19 @@
, appdirs
, click
, construct
, croniter
, cryptography
, importlib-metadata
, pytest
, pytest-mock
, zeroconf
, attrs
, pytz
, tqdm
, netifaces
}:


buildPythonPackage rec {
pname = "python-miio";
version = "0.5.3";
@@ -22,15 +26,23 @@ buildPythonPackage rec {
sha256 = "3be5275b569844dfa267c80a1e23dc0957411dd501cae0ed3cccf43467031ceb";
};

checkInputs = [ pytest ];
propagatedBuildInputs = [ appdirs click construct cryptography zeroconf attrs pytz tqdm netifaces ];
postPatch = ''
substituteInPlace setup.py \
--replace "zeroconf>=0.25.1,<0.26.0" "zeroconf"
substituteInPlace setup.py \
--replace "pytz>=2019.3,<2020.0" "pytz"
substituteInPlace setup.py \
--replace "cryptography>=2.9,<3.0" "cryptography"
'';

checkInputs = [ pytest pytest-mock];
propagatedBuildInputs = [ appdirs click construct croniter cryptography importlib-metadata zeroconf attrs pytz tqdm netifaces ];

checkPhase = ''
pytest
'';

meta = with stdenv.lib; {
broken = true;
description = "Python library for interfacing with Xiaomi smart appliances";
homepage = "https://github.com/rytilahti/python-miio";
license = licenses.gpl3;