depot/third_party/nixpkgs/pkgs/development/python-modules/aio-geojson-client/default.nix
Default email 792b51d22f Project import generated by Copybara.
GitOrigin-RevId: d5f237872975e6fb6f76eef1368b5634ffcd266f
2022-02-20 05:27:41 +00:00

51 lines
948 B
Nix

{ lib
, aiohttp
, aresponses
, asynctest
, buildPythonPackage
, fetchFromGitHub
, geojson
, haversine
, pytest-asyncio
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "aio-geojson-client";
version = "0.16";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "exxamalte";
repo = "python-aio-geojson-client";
rev = "v${version}";
hash = "sha256-u3SwrSxeBJrBTHfqKY/mAb2p1jqW2AvRsHomKsI81gM=";
};
propagatedBuildInputs = [
aiohttp
geojson
haversine
];
checkInputs = [
aresponses
asynctest
pytest-asyncio
pytestCheckHook
];
pythonImportsCheck = [
"aio_geojson_client"
];
meta = with lib; {
description = "Python module for accessing GeoJSON feeds";
homepage = "https://github.com/exxamalte/python-aio-geojson-client";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
};
}