about summary refs log tree commit diff
path: root/pkgs/development/python-modules/pynws
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2021-02-13 15:17:57 +0100
committerFabian Affolter <mail@fabian-affolter.ch>2021-02-13 15:17:57 +0100
commit838a98defb8bbe9b206e44435c9d0fa7c2836dc3 (patch)
tree0d6f13f27ff1270e0ec151999e0026b268f904b7 /pkgs/development/python-modules/pynws
parent4d2f44992c508a38e781abea0b02ad9395d7da9f (diff)
python3Packages.pynws: init 1.3.0
Diffstat (limited to 'pkgs/development/python-modules/pynws')
-rw-r--r--pkgs/development/python-modules/pynws/default.nix47
1 files changed, 47 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pynws/default.nix b/pkgs/development/python-modules/pynws/default.nix
new file mode 100644
index 0000000000000..abe4c93b818f4
--- /dev/null
+++ b/pkgs/development/python-modules/pynws/default.nix
@@ -0,0 +1,47 @@
+{ lib
+, aiohttp
+, buildPythonPackage
+, fetchFromGitHub
+, freezegun
+, metar
+, pytest-aiohttp
+, pytest-asyncio
+, pytest-cov
+, pytestCheckHook
+, pythonOlder
+}:
+
+buildPythonPackage rec {
+  pname = "pynws";
+  version = "1.3.0";
+  disabled = pythonOlder "3.6";
+
+  src = fetchFromGitHub {
+    owner = "MatthewFlamm";
+    repo = pname;
+    rev = "v${version}";
+    sha256 = "13ipmx60kicwh8qxjazap4vk94x8i3r0lnkdsap7gffaizwgp49d";
+  };
+
+  propagatedBuildInputs = [
+    aiohttp
+    metar
+  ];
+
+  checkInputs = [
+    freezegun
+    pytest-aiohttp
+    pytest-asyncio
+    pytest-cov
+    pytestCheckHook
+  ];
+
+  pythonImportsCheck = [ "pynws" ];
+
+  meta = with lib; {
+    description = "Python library to retrieve data from NWS/NOAA";
+    homepage = "https://github.com/MatthewFlamm/pynws";
+    license = with licenses; [ mit ];
+    maintainers = with maintainers; [ fab ];
+  };
+}