diff --git a/pkgs/development/python-modules/asmog/default.nix b/pkgs/development/python-modules/asmog/default.nix new file mode 100644 index 000000000000..a1d8c340ba68 --- /dev/null +++ b/pkgs/development/python-modules/asmog/default.nix @@ -0,0 +1,38 @@ +{ lib +, aiohttp +, async-timeout +, buildPythonPackage +, fetchPypi +, pythonOlder +}: + +buildPythonPackage rec { + pname = "asmog"; + version = "0.0.6"; + format = "setuptools"; + + disabled = pythonOlder "3.6"; + + src = fetchPypi { + inherit pname version; + sha256 = "14b8hdxcks6qyrqpp4mm77fvzznbskqn7fw9qgwgcqx81pg45iwk"; + }; + + propagatedBuildInputs = [ + aiohttp + async-timeout + ]; + + # Project doesn't ship the tests + # https://github.com/kstaniek/python-ampio-smog-api/issues/2 + doCheck = false; + + pythonImportsCheck = [ "asmog" ]; + + meta = with lib; { + description = "Python module for Ampio Smog Sensors"; + homepage = "https://github.com/kstaniek/python-ampio-smog-api"; + license = with licenses; [ asl20 ]; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix index 9092260cacbc..347caca82707 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -33,7 +33,7 @@ "ambiclimate" = ps: with ps; [ aiohttp-cors ambiclimate ]; "ambient_station" = ps: with ps; [ aioambient ]; "amcrest" = ps: with ps; [ amcrest ha-ffmpeg ]; - "ampio" = ps: with ps; [ ]; # missing inputs: asmog + "ampio" = ps: with ps; [ asmog ]; "analytics" = ps: with ps; [ aiohttp-cors sqlalchemy ]; "android_ip_webcam" = ps: with ps; [ pydroid-ipcam ]; "androidtv" = ps: with ps; [ adb-shell androidtv pure-python-adb ]; diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 2139082ae59f..648a94ff4211 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -579,6 +579,8 @@ in { asgiref = callPackage ../development/python-modules/asgiref { }; + asmog = callPackage ../development/python-modules/asmog { }; + asn1 = callPackage ../development/python-modules/asn1 { }; asn1ate = callPackage ../development/python-modules/asn1ate { };