Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.3 kB · 67 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768{ 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"; pyproject = true;
disabled = pythonOlder "3.10";
src = fetchFromGitHub { owner = "jabesq"; repo = "pyatmo"; rev = "refs/tags/v${version}"; hash = "sha256-FnDXj+bY/TMdengnxgludXUTiZw9wpeFiNbWTIxrlzw="; };
postPatch = '' substituteInPlace setup.cfg \ --replace "oauthlib~=3.1" "oauthlib" \ --replace "requests~=2.24" "requests" '';
nativeBuildInputs = [ setuptools-scm ];
propagatedBuildInputs = [ aiohttp oauthlib requests requests-oauthlib ];
nativeCheckInputs = [ pytest-asyncio pytest-mock pytestCheckHook requests-mock time-machine ];
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; [ delroth ]; };}