Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python3Packages.pyatmo: 4.0.0 -> 4.1.0 #100091

Merged
merged 1 commit into from Oct 9, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
26 changes: 19 additions & 7 deletions pkgs/development/python-modules/pyatmo/default.nix
@@ -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";
Expand Down