summary refs log blame commit diff
path: root/pkgs/development/python-modules/aio-geojson-client/default.nix
blob: f347ed5cd1bfbad121882b7b2357f90e70f90878 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14













                               
                   




                                       
                                                                    























                                                                        
{ lib
, aiohttp
, aresponses
, asynctest
, buildPythonPackage
, fetchFromGitHub
, geojson
, haversine
, pytest-asyncio
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "aio-geojson-client";
  version = "0.15";

  src = fetchFromGitHub {
    owner = "exxamalte";
    repo = "python-aio-geojson-client";
    rev = "v${version}";
    sha256 = "0sbzrzmny7x4bkbg6z0cjn4d10r50nxdyaq7g6lagwd8ijpkg8l3";
  };

  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 ];
  };
}