Merge pull request #110720 from fabaff/geojson_client

authored by

Sandro and committed by
GitHub
b82e56a8 ed788bc0

+77 -2
+39
pkgs/development/python-modules/geojson-client/default.nix
···
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchFromGitHub 4 + , geojson 5 + , haversine 6 + , pytz 7 + , requests 8 + , pytestCheckHook 9 + }: 10 + 11 + buildPythonPackage rec { 12 + pname = "geojson-client"; 13 + version = "0.5"; 14 + 15 + src = fetchFromGitHub { 16 + owner = "exxamalte"; 17 + repo = "python-geojson-client"; 18 + rev = "v${version}"; 19 + sha256 = "1cc6ymbn45dv7xdl1r8bbizlmsdbxjmsfza442yxmmm19nxnnqjv"; 20 + }; 21 + 22 + propagatedBuildInputs = [ 23 + geojson 24 + haversine 25 + pytz 26 + requests 27 + ]; 28 + 29 + checkInputs = [ pytestCheckHook ]; 30 + 31 + pythonImportsCheck = [ "geojson_client" ]; 32 + 33 + meta = with lib; { 34 + description = "Python module for convenient access to GeoJSON feeds"; 35 + homepage = "https://github.com/exxamalte/python-geojson-client"; 36 + license = with licenses; [ asl20 ]; 37 + maintainers = with maintainers; [ fab ]; 38 + }; 39 + }
+32
pkgs/development/python-modules/haversine/default.nix
···
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchFromGitHub 4 + , numpy 5 + , pytestCheckHook 6 + }: 7 + 8 + buildPythonPackage rec { 9 + pname = "haversine"; 10 + version = "2.3.0"; 11 + 12 + src = fetchFromGitHub { 13 + owner = "mapado"; 14 + repo = pname; 15 + rev = "v${version}"; 16 + sha256 = "1c3yf9162b2b7l1lsw3ffd1linnc542qvljpgwxp6y5arrmljqnv"; 17 + }; 18 + 19 + checkInputs = [ 20 + numpy 21 + pytestCheckHook 22 + ]; 23 + 24 + pythonImportsCheck = [ "haversine" ]; 25 + 26 + meta = with lib; { 27 + description = "Python module the distance between 2 points on earth"; 28 + homepage = "https://github.com/mapado/haversine"; 29 + license = with licenses; [ mit ]; 30 + maintainers = with maintainers; [ fab ]; 31 + }; 32 + }
+2 -2
pkgs/servers/home-assistant/component-packages.nix
··· 292 "generic" = ps: with ps; [ ]; 293 "generic_thermostat" = ps: with ps; [ ]; 294 "geniushub" = ps: with ps; [ ]; # missing inputs: geniushub-client 295 - "geo_json_events" = ps: with ps; [ ]; # missing inputs: geojson_client 296 "geo_location" = ps: with ps; [ ]; 297 "geo_rss_events" = ps: with ps; [ ]; # missing inputs: georss_generic_client 298 "geofency" = ps: with ps; [ aiohttp-cors ]; ··· 885 "uptime" = ps: with ps; [ ]; 886 "uptimerobot" = ps: with ps; [ ]; # missing inputs: pyuptimerobot 887 "uscis" = ps: with ps; [ ]; # missing inputs: uscisstatus 888 - "usgs_earthquakes_feed" = ps: with ps; [ ]; # missing inputs: geojson_client 889 "utility_meter" = ps: with ps; [ ]; 890 "uvc" = ps: with ps; [ uvcclient ]; 891 "vacuum" = ps: with ps; [ ];
··· 292 "generic" = ps: with ps; [ ]; 293 "generic_thermostat" = ps: with ps; [ ]; 294 "geniushub" = ps: with ps; [ ]; # missing inputs: geniushub-client 295 + "geo_json_events" = ps: with ps; [ geojson-client ]; 296 "geo_location" = ps: with ps; [ ]; 297 "geo_rss_events" = ps: with ps; [ ]; # missing inputs: georss_generic_client 298 "geofency" = ps: with ps; [ aiohttp-cors ]; ··· 885 "uptime" = ps: with ps; [ ]; 886 "uptimerobot" = ps: with ps; [ ]; # missing inputs: pyuptimerobot 887 "uscis" = ps: with ps; [ ]; # missing inputs: uscisstatus 888 + "usgs_earthquakes_feed" = ps: with ps; [ geojson-client ]; 889 "utility_meter" = ps: with ps; [ ]; 890 "uvc" = ps: with ps; [ uvcclient ]; 891 "vacuum" = ps: with ps; [ ];
+4
pkgs/top-level/python-packages.nix
··· 2512 2513 geojson = callPackage ../development/python-modules/geojson { }; 2514 2515 geopandas = callPackage ../development/python-modules/geopandas { }; 2516 2517 geopy = if isPy3k then ··· 2868 hass-nabucasa = callPackage ../development/python-modules/hass-nabucasa { }; 2869 2870 hatasmota = callPackage ../development/python-modules/hatasmota { }; 2871 2872 hawkauthlib = callPackage ../development/python-modules/hawkauthlib { }; 2873
··· 2512 2513 geojson = callPackage ../development/python-modules/geojson { }; 2514 2515 + geojson-client = callPackage ../development/python-modules/geojson-client { }; 2516 + 2517 geopandas = callPackage ../development/python-modules/geopandas { }; 2518 2519 geopy = if isPy3k then ··· 2870 hass-nabucasa = callPackage ../development/python-modules/hass-nabucasa { }; 2871 2872 hatasmota = callPackage ../development/python-modules/hatasmota { }; 2873 + 2874 + haversine = callPackage ../development/python-modules/haversine { }; 2875 2876 hawkauthlib = callPackage ../development/python-modules/hawkauthlib { }; 2877