Merge pull request #110720 from fabaff/geojson_client
This commit is contained in:
commit
b82e56a80a
39
pkgs/development/python-modules/geojson-client/default.nix
Normal file
39
pkgs/development/python-modules/geojson-client/default.nix
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, geojson
|
||||||
|
, haversine
|
||||||
|
, pytz
|
||||||
|
, requests
|
||||||
|
, pytestCheckHook
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "geojson-client";
|
||||||
|
version = "0.5";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "exxamalte";
|
||||||
|
repo = "python-geojson-client";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "1cc6ymbn45dv7xdl1r8bbizlmsdbxjmsfza442yxmmm19nxnnqjv";
|
||||||
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
geojson
|
||||||
|
haversine
|
||||||
|
pytz
|
||||||
|
requests
|
||||||
|
];
|
||||||
|
|
||||||
|
checkInputs = [ pytestCheckHook ];
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "geojson_client" ];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Python module for convenient access to GeoJSON feeds";
|
||||||
|
homepage = "https://github.com/exxamalte/python-geojson-client";
|
||||||
|
license = with licenses; [ asl20 ];
|
||||||
|
maintainers = with maintainers; [ fab ];
|
||||||
|
};
|
||||||
|
}
|
32
pkgs/development/python-modules/haversine/default.nix
Normal file
32
pkgs/development/python-modules/haversine/default.nix
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, numpy
|
||||||
|
, pytestCheckHook
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "haversine";
|
||||||
|
version = "2.3.0";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "mapado";
|
||||||
|
repo = pname;
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "1c3yf9162b2b7l1lsw3ffd1linnc542qvljpgwxp6y5arrmljqnv";
|
||||||
|
};
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
numpy
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "haversine" ];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Python module the distance between 2 points on earth";
|
||||||
|
homepage = "https://github.com/mapado/haversine";
|
||||||
|
license = with licenses; [ mit ];
|
||||||
|
maintainers = with maintainers; [ fab ];
|
||||||
|
};
|
||||||
|
}
|
@ -292,7 +292,7 @@
|
|||||||
"generic" = ps: with ps; [ ];
|
"generic" = ps: with ps; [ ];
|
||||||
"generic_thermostat" = ps: with ps; [ ];
|
"generic_thermostat" = ps: with ps; [ ];
|
||||||
"geniushub" = ps: with ps; [ ]; # missing inputs: geniushub-client
|
"geniushub" = ps: with ps; [ ]; # missing inputs: geniushub-client
|
||||||
"geo_json_events" = ps: with ps; [ ]; # missing inputs: geojson_client
|
"geo_json_events" = ps: with ps; [ geojson-client ];
|
||||||
"geo_location" = ps: with ps; [ ];
|
"geo_location" = ps: with ps; [ ];
|
||||||
"geo_rss_events" = ps: with ps; [ ]; # missing inputs: georss_generic_client
|
"geo_rss_events" = ps: with ps; [ ]; # missing inputs: georss_generic_client
|
||||||
"geofency" = ps: with ps; [ aiohttp-cors ];
|
"geofency" = ps: with ps; [ aiohttp-cors ];
|
||||||
@ -885,7 +885,7 @@
|
|||||||
"uptime" = ps: with ps; [ ];
|
"uptime" = ps: with ps; [ ];
|
||||||
"uptimerobot" = ps: with ps; [ ]; # missing inputs: pyuptimerobot
|
"uptimerobot" = ps: with ps; [ ]; # missing inputs: pyuptimerobot
|
||||||
"uscis" = ps: with ps; [ ]; # missing inputs: uscisstatus
|
"uscis" = ps: with ps; [ ]; # missing inputs: uscisstatus
|
||||||
"usgs_earthquakes_feed" = ps: with ps; [ ]; # missing inputs: geojson_client
|
"usgs_earthquakes_feed" = ps: with ps; [ geojson-client ];
|
||||||
"utility_meter" = ps: with ps; [ ];
|
"utility_meter" = ps: with ps; [ ];
|
||||||
"uvc" = ps: with ps; [ uvcclient ];
|
"uvc" = ps: with ps; [ uvcclient ];
|
||||||
"vacuum" = ps: with ps; [ ];
|
"vacuum" = ps: with ps; [ ];
|
||||||
|
@ -2512,6 +2512,8 @@ in {
|
|||||||
|
|
||||||
geojson = callPackage ../development/python-modules/geojson { };
|
geojson = callPackage ../development/python-modules/geojson { };
|
||||||
|
|
||||||
|
geojson-client = callPackage ../development/python-modules/geojson-client { };
|
||||||
|
|
||||||
geopandas = callPackage ../development/python-modules/geopandas { };
|
geopandas = callPackage ../development/python-modules/geopandas { };
|
||||||
|
|
||||||
geopy = if isPy3k then
|
geopy = if isPy3k then
|
||||||
@ -2869,6 +2871,8 @@ in {
|
|||||||
|
|
||||||
hatasmota = callPackage ../development/python-modules/hatasmota { };
|
hatasmota = callPackage ../development/python-modules/hatasmota { };
|
||||||
|
|
||||||
|
haversine = callPackage ../development/python-modules/haversine { };
|
||||||
|
|
||||||
hawkauthlib = callPackage ../development/python-modules/hawkauthlib { };
|
hawkauthlib = callPackage ../development/python-modules/hawkauthlib { };
|
||||||
|
|
||||||
hbmqtt = callPackage ../development/python-modules/hbmqtt { };
|
hbmqtt = callPackage ../development/python-modules/hbmqtt { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user