git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #139757 from fabaff/asmog

python3Packages.asmog: init at 0.0.6

commitca2ece2bd4bfc8190f14ecbc92cfa50e0ac50336 authorFabian Affolter <fabian@affolter-engineering.ch> dateThu 30 Sep 2021, 21:10 (5 years ago) parent189dabca02160a
3 files changed+41−1
pkgs/development/python-modules/asmog/default.nix+38 pkgs/servers/home-assistant/component-packages.nix+1−1 pkgs/top-level/python-packages.nix+2
pkgs/development/python-modules/asmog/default.nixnew file+38
@@ -0,0 +1,38 @@
1+{ lib
2+, aiohttp
3+, async-timeout
4+, buildPythonPackage
5+, fetchPypi
6+, pythonOlder
7+}:
8+
9+buildPythonPackage rec {
10+ pname = "asmog";
11+ version = "0.0.6";
12+ format = "setuptools";
13+
14+ disabled = pythonOlder "3.6";
15+
16+ src = fetchPypi {
17+ inherit pname version;
18+ sha256 = "14b8hdxcks6qyrqpp4mm77fvzznbskqn7fw9qgwgcqx81pg45iwk";
19+ };
20+
21+ propagatedBuildInputs = [
22+ aiohttp
23+ async-timeout
24+ ];
25+
26+ # Project doesn't ship the tests
27+ # https://github.com/kstaniek/python-ampio-smog-api/issues/2
28+ doCheck = false;
29+
30+ pythonImportsCheck = [ "asmog" ];
31+
32+ meta = with lib; {
33+ description = "Python module for Ampio Smog Sensors";
34+ homepage = "https://github.com/kstaniek/python-ampio-smog-api";
35+ license = with licenses; [ asl20 ];
36+ maintainers = with maintainers; [ fab ];
37+ };
38+}
pkgs/servers/home-assistant/component-packages.nix+1−1
@@ -33,7 +33,7 @@
3333 "ambiclimate" = ps: with ps; [ aiohttp-cors ambiclimate ];
3434 "ambient_station" = ps: with ps; [ aioambient ];
3535 "amcrest" = ps: with ps; [ amcrest ha-ffmpeg ];
36− "ampio" = ps: with ps; [ ]; # missing inputs: asmog
36+ "ampio" = ps: with ps; [ asmog ];
3737 "analytics" = ps: with ps; [ aiohttp-cors sqlalchemy ];
3838 "android_ip_webcam" = ps: with ps; [ pydroid-ipcam ];
3939 "androidtv" = ps: with ps; [ adb-shell androidtv pure-python-adb ];
pkgs/top-level/python-packages.nix+2
@@ -579,6 +579,8 @@ in {
579579
580580 asgiref = callPackage ../development/python-modules/asgiref { };
581581
582+ asmog = callPackage ../development/python-modules/asmog { };
583+
582584 asn1 = callPackage ../development/python-modules/asn1 { };
583585
584586 asn1ate = callPackage ../development/python-modules/asn1ate { };