diff options
author | makefu <github@syntax-fehler.de> | 2019-07-04 11:15:01 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2019-07-04 11:15:01 +0200 |
commit | 9d50bfa569e072001a97d22e6c4375b264e5cff7 (patch) | |
tree | 330ba7f7b9ca3d6e08e4ba2178d48ce4ac0eabd7 /makefu/2configs/bureautomation/deps/dwd_pollen.nix | |
parent | c78dcd58cc0fa7a992b6bc7a5aca96319217415c (diff) |
ma bureautomation: move deps
Diffstat (limited to 'makefu/2configs/bureautomation/deps/dwd_pollen.nix')
-rw-r--r-- | makefu/2configs/bureautomation/deps/dwd_pollen.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/makefu/2configs/bureautomation/deps/dwd_pollen.nix b/makefu/2configs/bureautomation/deps/dwd_pollen.nix new file mode 100644 index 000000000..39d9c3069 --- /dev/null +++ b/makefu/2configs/bureautomation/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 ]; + }; +} |