summaryrefslogtreecommitdiffstats
path: root/pkgs/development/python-modules/aio-geojson-geonetnz-quakes
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2021-06-06 00:14:12 +0200
committerFabian Affolter <mail@fabian-affolter.ch>2021-06-14 12:13:09 +0200
commit1d948b071d03fc94f5faf22626af6938ff9532f3 (patch)
treeaa6a2310a6364bcefdad243f41c1f5ac57c651e5 /pkgs/development/python-modules/aio-geojson-geonetnz-quakes
parentade0e5bd30a4ddf38f984312df7637be1d1d6dfd (diff)
python3Packages.aio-geojson-geonetnz-quakes: init at 0.12
Diffstat (limited to 'pkgs/development/python-modules/aio-geojson-geonetnz-quakes')
-rw-r--r--pkgs/development/python-modules/aio-geojson-geonetnz-quakes/default.nix43
1 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/aio-geojson-geonetnz-quakes/default.nix b/pkgs/development/python-modules/aio-geojson-geonetnz-quakes/default.nix
new file mode 100644
index 000000000000..2def7919fa11
--- /dev/null
+++ b/pkgs/development/python-modules/aio-geojson-geonetnz-quakes/default.nix
@@ -0,0 +1,43 @@
+{ lib
+, aio-geojson-client
+, aiohttp
+, aresponses
+, buildPythonPackage
+, fetchFromGitHub
+, pytest-asyncio
+, pytestCheckHook
+, pytz
+}:
+
+buildPythonPackage rec {
+ pname = "aio-geojson-geonetnz-quakes";
+ version = "0.12";
+
+ src = fetchFromGitHub {
+ owner = "exxamalte";
+ repo = "python-aio-geojson-geonetnz-quakes";
+ rev = "v${version}";
+ sha256 = "166gvcc1rzigb822k1373y18k54x5aklikr8sc7hyml5vz937xr7";
+ };
+
+ propagatedBuildInputs = [
+ aio-geojson-client
+ aiohttp
+ pytz
+ ];
+
+ checkInputs = [
+ aresponses
+ pytest-asyncio
+ pytestCheckHook
+ ];
+
+ pythonImportsCheck = [ "aio_geojson_geonetnz_quakes" ];
+
+ meta = with lib; {
+ description = "Python module for accessing the GeoNet NZ Quakes GeoJSON feeds";
+ homepage = "https://github.com/exxamalte/pythonaio-geojson-geonetnz-quakes";
+ license = with licenses; [ asl20 ];
+ maintainers = with maintainers; [ fab ];
+ };
+}