git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #125862 from fabaff/geojson

python3Packages.aio-geojson-client: init at 0.14

commit7823c13074517cd2ce8d2e11bb53e444d504783e authorFabian Affolter <fabian@affolter-engineering.ch> dateMon 14 Jun 2021, 15:15 (5 years ago) parent01df9c1d97fa35
7 files changed+193−3
pkgs/development/python-modules/aio-geojson-client/default.nix+45 pkgs/development/python-modules/aio-geojson-geonetnz-quakes/default.nix+43 pkgs/development/python-modules/aio-geojson-geonetnz-volcano/default.nix+45 pkgs/development/python-modules/aio-geojson-nsw-rfs-incidents/default.nix+45 pkgs/servers/home-assistant/component-packages.nix+3−3 pkgs/servers/home-assistant/default.nix+4 pkgs/top-level/python-packages.nix+8
pkgs/development/python-modules/aio-geojson-client/default.nixnew file+45
@@ -0,0 +1,45 @@
1+{ lib
2+, aiohttp
3+, aresponses
4+, asynctest
5+, buildPythonPackage
6+, fetchFromGitHub
7+, geojson
8+, haversine
9+, pytest-asyncio
10+, pytestCheckHook
11+}:
12+
13+buildPythonPackage rec {
14+ pname = "aio-geojson-client";
15+ version = "0.14";
16+
17+ src = fetchFromGitHub {
18+ owner = "exxamalte";
19+ repo = "python-aio-geojson-client";
20+ rev = "v${version}";
21+ sha256 = "1nk0mas71n1bn4wc7pcv279i1b5mxy9phyc8ppxlb16kbjnjj0h8";
22+ };
23+
24+ propagatedBuildInputs = [
25+ aiohttp
26+ geojson
27+ haversine
28+ ];
29+
30+ checkInputs = [
31+ aresponses
32+ asynctest
33+ pytest-asyncio
34+ pytestCheckHook
35+ ];
36+
37+ pythonImportsCheck = [ "aio_geojson_client" ];
38+
39+ meta = with lib; {
40+ description = "Python module for accessing GeoJSON feeds";
41+ homepage = "https://github.com/exxamalte/python-aio-geojson-client";
42+ license = with licenses; [ asl20 ];
43+ maintainers = with maintainers; [ fab ];
44+ };
45+}
pkgs/development/python-modules/aio-geojson-geonetnz-quakes/default.nixnew file+43
@@ -0,0 +1,43 @@
1+{ lib
2+, aio-geojson-client
3+, aiohttp
4+, aresponses
5+, buildPythonPackage
6+, fetchFromGitHub
7+, pytest-asyncio
8+, pytestCheckHook
9+, pytz
10+}:
11+
12+buildPythonPackage rec {
13+ pname = "aio-geojson-geonetnz-quakes";
14+ version = "0.12";
15+
16+ src = fetchFromGitHub {
17+ owner = "exxamalte";
18+ repo = "python-aio-geojson-geonetnz-quakes";
19+ rev = "v${version}";
20+ sha256 = "166gvcc1rzigb822k1373y18k54x5aklikr8sc7hyml5vz937xr7";
21+ };
22+
23+ propagatedBuildInputs = [
24+ aio-geojson-client
25+ aiohttp
26+ pytz
27+ ];
28+
29+ checkInputs = [
30+ aresponses
31+ pytest-asyncio
32+ pytestCheckHook
33+ ];
34+
35+ pythonImportsCheck = [ "aio_geojson_geonetnz_quakes" ];
36+
37+ meta = with lib; {
38+ description = "Python module for accessing the GeoNet NZ Quakes GeoJSON feeds";
39+ homepage = "https://github.com/exxamalte/pythonaio-geojson-geonetnz-quakes";
40+ license = with licenses; [ asl20 ];
41+ maintainers = with maintainers; [ fab ];
42+ };
43+}
pkgs/development/python-modules/aio-geojson-geonetnz-volcano/default.nixnew file+45
@@ -0,0 +1,45 @@
1+{ lib
2+, aio-geojson-client
3+, aiohttp
4+, aresponses
5+, asynctest
6+, buildPythonPackage
7+, fetchFromGitHub
8+, pytest-asyncio
9+, pytestCheckHook
10+, pytz
11+}:
12+
13+buildPythonPackage rec {
14+ pname = "aio-geojson-geonetnz-volcano";
15+ version = "0.5";
16+
17+ src = fetchFromGitHub {
18+ owner = "exxamalte";
19+ repo = "python-aio-geojson-geonetnz-volcano";
20+ rev = "v${version}";
21+ sha256 = "0x4i9gjwb2j788aw4j47bxin0d2ma3khssprq4ga3cjzx2qjwjvn";
22+ };
23+
24+ propagatedBuildInputs = [
25+ aio-geojson-client
26+ aiohttp
27+ pytz
28+ ];
29+
30+ checkInputs = [
31+ aresponses
32+ asynctest
33+ pytest-asyncio
34+ pytestCheckHook
35+ ];
36+
37+ pythonImportsCheck = [ "aio_geojson_geonetnz_volcano" ];
38+
39+ meta = with lib; {
40+ description = "Python module for accessing the GeoNet NZ Volcanic GeoJSON feeds";
41+ homepage = "https://github.com/exxamalte/pythonaio-geojson-geonetnz-volcano";
42+ license = with licenses; [ asl20 ];
43+ maintainers = with maintainers; [ fab ];
44+ };
45+}
pkgs/development/python-modules/aio-geojson-nsw-rfs-incidents/default.nixnew file+45
@@ -0,0 +1,45 @@
1+{ lib
2+, aio-geojson-client
3+, aiohttp
4+, aresponses
5+, asynctest
6+, buildPythonPackage
7+, fetchFromGitHub
8+, pytest-asyncio
9+, pytestCheckHook
10+, pytz
11+}:
12+
13+buildPythonPackage rec {
14+ pname = "aio-geojson-nsw-rfs-incidents";
15+ version = "0.4";
16+
17+ src = fetchFromGitHub {
18+ owner = "exxamalte";
19+ repo = "python-aio-geojson-nsw-rfs-incidents";
20+ rev = "v${version}";
21+ sha256 = "sha256-o9tuoJ7VZ6bg0rYeRWClKxdbxxj6wPgkSF7ZdOfmJew=";
22+ };
23+
24+ propagatedBuildInputs = [
25+ aio-geojson-client
26+ aiohttp
27+ pytz
28+ ];
29+
30+ checkInputs = [
31+ aresponses
32+ asynctest
33+ pytest-asyncio
34+ pytestCheckHook
35+ ];
36+
37+ pythonImportsCheck = [ "aio_geojson_nsw_rfs_incidents" ];
38+
39+ meta = with lib; {
40+ description = "Python module for accessing the NSW Rural Fire Service incidents feeds";
41+ homepage = "https://github.com/exxamalte/python-aio-geojson-nsw-rfs-incidents";
42+ license = with licenses; [ asl20 ];
43+ maintainers = with maintainers; [ fab ];
44+ };
45+}
pkgs/servers/home-assistant/component-packages.nix+3−3
@@ -303,8 +303,8 @@
303303 "geo_location" = ps: with ps; [ ];
304304 "geo_rss_events" = ps: with ps; [ georss-generic-client ];
305305 "geofency" = ps: with ps; [ aiohttp-cors ];
306− "geonetnz_quakes" = ps: with ps; [ ]; # missing inputs: aio_geojson_geonetnz_quakes
307− "geonetnz_volcano" = ps: with ps; [ ]; # missing inputs: aio_geojson_geonetnz_volcano
306+ "geonetnz_quakes" = ps: with ps; [ aio-geojson-geonetnz-quakes ];
307+ "geonetnz_volcano" = ps: with ps; [ aio-geojson-geonetnz-volcano ];
308308 "gios" = ps: with ps; [ gios ];
309309 "github" = ps: with ps; [ PyGithub ];
310310 "gitlab_ci" = ps: with ps; [ python-gitlab ];
@@ -576,7 +576,7 @@
576576 "notify_events" = ps: with ps; [ ]; # missing inputs: notify-events
577577 "notion" = ps: with ps; [ aionotion ];
578578 "nsw_fuel_station" = ps: with ps; [ ]; # missing inputs: nsw-fuel-api-client
579− "nsw_rural_fire_service_feed" = ps: with ps; [ ]; # missing inputs: aio_geojson_nsw_rfs_incidents
579+ "nsw_rural_fire_service_feed" = ps: with ps; [ aio-geojson-nsw-rfs-incidents ];
580580 "nuheat" = ps: with ps; [ ]; # missing inputs: nuheat
581581 "nuki" = ps: with ps; [ pynuki ];
582582 "numato" = ps: with ps; [ ]; # missing inputs: numato-gpio
pkgs/servers/home-assistant/default.nix+4
@@ -391,7 +391,10 @@ in with py.pkgs; buildPythonApplication rec {
391391 "generic_thermostat"
392392 "geo_json_events"
393393 "geo_location"
394+ "geo_rss_events"
394395 "geofency"
396+ "geonetnz_quakes"
397+ "geonetnz_volcano"
395398 "glances"
396399 "gios"
397400 "gogogate2"
@@ -505,6 +508,7 @@ in with py.pkgs; buildPythonApplication rec {
505508 "no_ip"
506509 "notify"
507510 "notion"
511+ "nsw_rural_fire_service_feed"
508512 "nuki"
509513 "number"
510514 "nws"
pkgs/top-level/python-packages.nix+8
@@ -225,6 +225,14 @@ in {
225225
226226 agent-py = callPackage ../development/python-modules/agent-py { };
227227
228+ aio-geojson-client = callPackage ../development/python-modules/aio-geojson-client { };
229+
230+ aio-geojson-geonetnz-quakes = callPackage ../development/python-modules/aio-geojson-geonetnz-quakes { };
231+
232+ aio-geojson-geonetnz-volcano = callPackage ../development/python-modules/aio-geojson-geonetnz-volcano { };
233+
234+ aio-geojson-nsw-rfs-incidents = callPackage ../development/python-modules/aio-geojson-nsw-rfs-incidents { };
235+
228236 aio-georss-client = callPackage ../development/python-modules/aio-georss-client { };
229237
230238 aio-georss-gdacs = callPackage ../development/python-modules/aio-georss-gdacs { };