diff options
Diffstat (limited to 'pkgs/development/python-modules/pyatmo/default.nix')
-rw-r--r-- | pkgs/development/python-modules/pyatmo/default.nix | 55 |
1 files changed, 26 insertions, 29 deletions
diff --git a/pkgs/development/python-modules/pyatmo/default.nix b/pkgs/development/python-modules/pyatmo/default.nix index 7b40a3880e21..56deb7369327 100644 --- a/pkgs/development/python-modules/pyatmo/default.nix +++ b/pkgs/development/python-modules/pyatmo/default.nix @@ -1,22 +1,23 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, oauthlib -, pytest-asyncio -, pytest-mock -, pytestCheckHook -, pythonOlder -, requests -, requests-oauthlib -, requests-mock -, setuptools-scm -, time-machine +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + oauthlib, + pytest-asyncio, + pytest-mock, + pytestCheckHook, + pythonOlder, + requests, + requests-oauthlib, + requests-mock, + setuptools-scm, + time-machine, }: buildPythonPackage rec { pname = "pyatmo"; - version = "8.0.3"; + version = "8.1.0"; pyproject = true; disabled = pythonOlder "3.10"; @@ -25,20 +26,18 @@ buildPythonPackage rec { owner = "jabesq"; repo = "pyatmo"; rev = "refs/tags/v${version}"; - hash = "sha256-FnDXj+bY/TMdengnxgludXUTiZw9wpeFiNbWTIxrlzw="; + hash = "sha256-SRuBV7XWt4Myks7kbUzGAscggspUbRoLOvYNiorF8To="; }; - postPatch = '' - substituteInPlace setup.cfg \ - --replace "oauthlib~=3.1" "oauthlib" \ - --replace "requests~=2.24" "requests" - ''; - - nativeBuildInputs = [ - setuptools-scm + pythonRelaxDeps = [ + "oauthlib" + "requests-oauthlib" + "requests" ]; - propagatedBuildInputs = [ + build-system = [ setuptools-scm ]; + + dependencies = [ aiohttp oauthlib requests @@ -53,15 +52,13 @@ buildPythonPackage rec { time-machine ]; - pythonImportsCheck = [ - "pyatmo" - ]; + pythonImportsCheck = [ "pyatmo" ]; meta = with lib; { description = "Simple API to access Netatmo weather station data"; homepage = "https://github.com/jabesq/pyatmo"; changelog = "https://github.com/jabesq/pyatmo/blob/v${version}/CHANGELOG.md"; license = licenses.mit; - maintainers = with maintainers; [ ]; + maintainers = [ ]; }; } |