summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/bureautomation/dwd_pollen.nix
blob: 39d9c30696c0a336d1517d0b0f201f25f71a67a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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 ];
  };
}