Loading pkgs/development/python-modules/aiopurpleair/default.nix 0 → 100644 +65 −0 Original line number Diff line number Diff line { lib , aiohttp , aresponses , buildPythonPackage , fetchFromGitHub , poetry-core , pydantic , pytest-aiohttp , pytest-asyncio , pytestCheckHook , pythonOlder }: buildPythonPackage rec { pname = "aiopurpleair"; version = "2022.12.1"; format = "pyproject"; disabled = pythonOlder "3.9"; src = fetchFromGitHub { owner = "bachya"; repo = pname; rev = "refs/tags/${version}"; hash = "sha256-YmJH4brWkTpgzyHwu9UnIWrY5qlDCmMtvF+KxQFXwfk="; }; postPatch = '' substituteInPlace pyproject.toml \ --replace 'pydantic = "^1.10.2"' 'pydantic = "*"' ''; nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ aiohttp pydantic ]; checkInputs = [ aresponses pytest-aiohttp pytest-asyncio pytestCheckHook ]; disabledTestPaths = [ # Ignore the examples directory as the files are prefixed with test_. "examples/" ]; pythonImportsCheck = [ "aiopurpleair" ]; meta = with lib; { description = "Python library for interacting with the PurpleAir API"; homepage = "https://github.com/bachya/aiopurpleair"; changelog = "https://github.com/bachya/aiopurpleair/releases/tag/${version}"; license = with licenses; [ mit ]; maintainers = with maintainers; [ fab ]; }; } pkgs/servers/home-assistant/component-packages.nix +3 −1 Original line number Diff line number Diff line Loading @@ -2674,7 +2674,8 @@ gridnet ]; "purpleair" = ps: with ps; [ ]; # missing inputs: aiopurpleair aiopurpleair ]; "push" = ps: with ps; [ aiohttp-cors ]; Loading Loading @@ -4551,6 +4552,7 @@ "proximity" "prusalink" "pure_energie" "purpleair" "push" "pushbullet" "pushover" Loading pkgs/top-level/python-packages.nix +2 −0 Original line number Diff line number Diff line Loading @@ -278,6 +278,8 @@ self: super: with self; { aiopulse = callPackage ../development/python-modules/aiopulse { }; aiopurpleair = callPackage ../development/python-modules/aiopurpleair { }; aiopvapi = callPackage ../development/python-modules/aiopvapi { }; aiopvpc = callPackage ../development/python-modules/aiopvpc { }; Loading Loading
pkgs/development/python-modules/aiopurpleair/default.nix 0 → 100644 +65 −0 Original line number Diff line number Diff line { lib , aiohttp , aresponses , buildPythonPackage , fetchFromGitHub , poetry-core , pydantic , pytest-aiohttp , pytest-asyncio , pytestCheckHook , pythonOlder }: buildPythonPackage rec { pname = "aiopurpleair"; version = "2022.12.1"; format = "pyproject"; disabled = pythonOlder "3.9"; src = fetchFromGitHub { owner = "bachya"; repo = pname; rev = "refs/tags/${version}"; hash = "sha256-YmJH4brWkTpgzyHwu9UnIWrY5qlDCmMtvF+KxQFXwfk="; }; postPatch = '' substituteInPlace pyproject.toml \ --replace 'pydantic = "^1.10.2"' 'pydantic = "*"' ''; nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ aiohttp pydantic ]; checkInputs = [ aresponses pytest-aiohttp pytest-asyncio pytestCheckHook ]; disabledTestPaths = [ # Ignore the examples directory as the files are prefixed with test_. "examples/" ]; pythonImportsCheck = [ "aiopurpleair" ]; meta = with lib; { description = "Python library for interacting with the PurpleAir API"; homepage = "https://github.com/bachya/aiopurpleair"; changelog = "https://github.com/bachya/aiopurpleair/releases/tag/${version}"; license = with licenses; [ mit ]; maintainers = with maintainers; [ fab ]; }; }
pkgs/servers/home-assistant/component-packages.nix +3 −1 Original line number Diff line number Diff line Loading @@ -2674,7 +2674,8 @@ gridnet ]; "purpleair" = ps: with ps; [ ]; # missing inputs: aiopurpleair aiopurpleair ]; "push" = ps: with ps; [ aiohttp-cors ]; Loading Loading @@ -4551,6 +4552,7 @@ "proximity" "prusalink" "pure_energie" "purpleair" "push" "pushbullet" "pushover" Loading
pkgs/top-level/python-packages.nix +2 −0 Original line number Diff line number Diff line Loading @@ -278,6 +278,8 @@ self: super: with self; { aiopulse = callPackage ../development/python-modules/aiopulse { }; aiopurpleair = callPackage ../development/python-modules/aiopurpleair { }; aiopvapi = callPackage ../development/python-modules/aiopvapi { }; aiopvpc = callPackage ../development/python-modules/aiopvpc { }; Loading