summaryrefslogtreecommitdiffstats
path: root/krebs/2configs/shack/glados/deps/dwd_pollen.nix
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2019-09-02 13:57:06 +0200
committermakefu <github@syntax-fehler.de>2019-09-02 13:57:06 +0200
commite4c836b9c4901f99fe870dae8c338dbe648494ac (patch)
tree926dbeffadcf1aab6dc69cfb84c5efa4d79ff941 /krebs/2configs/shack/glados/deps/dwd_pollen.nix
parent86592a723309d45dc09ff90872c0ee4aa7e52dc0 (diff)
shack/glados: init home-assistant config
Diffstat (limited to 'krebs/2configs/shack/glados/deps/dwd_pollen.nix')
-rw-r--r--krebs/2configs/shack/glados/deps/dwd_pollen.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/krebs/2configs/shack/glados/deps/dwd_pollen.nix b/krebs/2configs/shack/glados/deps/dwd_pollen.nix
new file mode 100644
index 000000000..39d9c3069
--- /dev/null
+++ b/krebs/2configs/shack/glados/deps/dwd_pollen.nix
@@ -0,0 +1,32 @@
+{ lib
+, buildPythonPackage
+, fetchFromGitHub
+, python
+, voluptuous
+}:
+
+buildPythonPackage rec {
+ format = "other";
+ pname = "dwd_pollen";
+ version = "0.1";
+
+ src = fetchFromGitHub {
+ owner = "marcschumacher";
+ repo = "dwd_pollen";
+ rev = version;
+ sha256 = "1af2mx99gv2hk1ad53g21fwkdfdbymqcdl3jvzd1yg7dgxlkhbj1";
+ };
+ propagatedBuildInputs = [
+ voluptuous
+ ];
+ installPhase = ''
+ install -D -t $out/${python.sitePackages}/homeassistant/components/sensor/dwd_pollen *
+ '';
+
+ meta = with lib; {
+ description = "Home Assistant component to retrieve Pollen data from DWD (Germany)";
+ homepage = https://github.com/marcschumacher/dwd_pollen;
+ license = licenses.mit;
+ maintainers = [ maintainers.makefu ];
+ };
+}