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

Commits on Oct 9, 2020

  1. python3Packages.pyatmo: 4.0.0 -> 4.1.0

    Enable tests by fetching sources from GitHub.
    mweinelt committed Oct 9, 2020
    Copy the full SHA
    3f3e794 View commit details
  2. Merge pull request #100091 from mweinelt/pyatmo

    python3Packages.pyatmo: 4.0.0 -> 4.1.0
    mweinelt authored Oct 9, 2020

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    erictapen Kerstin
    Copy the full SHA
    7315586 View commit details
Showing with 19 additions and 7 deletions.
  1. +19 −7 pkgs/development/python-modules/pyatmo/default.nix
26 changes: 19 additions & 7 deletions pkgs/development/python-modules/pyatmo/default.nix
Original file line number Diff line number Diff line change
@@ -1,24 +1,36 @@
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, fetchFromGitHub
, oauthlib
, requests
, requests_oauthlib
, freezegun
, pytestCheckHook
, requests-mock
}:

buildPythonPackage rec {
pname = "pyatmo";
version = "4.0.0";
version = "4.1.0";
disabled = pythonOlder "3.5"; # uses type hints

src = fetchPypi {
inherit pname version;
sha256 = "148713395d51a57f1f3102eacbb9286a859fc5c18c066238a961a1acf189b930";
src = fetchFromGitHub {
owner = "jabesq";
repo = "netatmo-api-python";
rev = "v${version}";
sha256 = "0x3xq6ni9rl5k3vi0ydqafdzvza785ycnlgyikgqbkppbh3j33ig";
};

propagatedBuildInputs = [ oauthlib requests requests_oauthlib ];

# Upstream provides no unit tests.
doCheck = false;
checkInputs = [
freezegun
pytestCheckHook
requests-mock
];

pythonImportsCheck = [ "pyatmo" ];

meta = with lib; {
description = "Simple API to access Netatmo weather station data";