summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/pymeteireann/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/pymeteireann/default.nix')
-rw-r--r--pkgs/development/python-modules/pymeteireann/default.nix39
1 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pymeteireann/default.nix b/pkgs/development/python-modules/pymeteireann/default.nix
new file mode 100644
index 000000000000..7e48a4089a12
--- /dev/null
+++ b/pkgs/development/python-modules/pymeteireann/default.nix
@@ -0,0 +1,39 @@
+{ lib
+, aiohttp
+, async-timeout
+, buildPythonPackage
+, fetchFromGitHub
+, pytz
+, xmltodict
+}:
+
+buildPythonPackage rec {
+ pname = "pymeteireann";
+ version = "0.2";
+
+ src = fetchFromGitHub {
+ owner = "DylanGore";
+ repo = "PyMetEireann";
+ rev = version;
+ sha256 = "1904f8mvv4ghzbniswmdwyj5v71m6y3yn1b4grjvfds05skalm67";
+ };
+
+ propagatedBuildInputs = [
+ aiohttp
+ async-timeout
+ pytz
+ xmltodict
+ ];
+
+ # Project has no tests
+ doCheck = false;
+
+ pythonImportsCheck = [ "meteireann" ];
+
+ meta = with lib; {
+ description = "Python module to communicate with the Met Éireann Public Weather Forecast API";
+ homepage = "https://github.com/DylanGore/PyMetEireann/";
+ license = with licenses; [ mit ];
+ maintainers = with maintainers; [ fab ];
+ };
+}