nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, aio-geojson-client
3, aiohttp
4, aresponses
5, buildPythonPackage
6, fetchFromGitHub
7, pytest-asyncio
8, pytestCheckHook
9, pytz
10, pythonOlder
11}:
12
13buildPythonPackage rec {
14 pname = "aio-geojson-geonetnz-quakes";
15 version = "0.15";
16 format = "setuptools";
17
18 disabled = pythonOlder "3.7";
19
20 src = fetchFromGitHub {
21 owner = "exxamalte";
22 repo = "python-aio-geojson-geonetnz-quakes";
23 rev = "refs/tags/v${version}";
24 hash = "sha256-/EPPEGLtiZBorZMnVg0NqwnHCbCXyZzz4449MzAYQx8=";
25 };
26
27 propagatedBuildInputs = [
28 aio-geojson-client
29 aiohttp
30 pytz
31 ];
32
33 nativeCheckInputs = [
34 aresponses
35 pytest-asyncio
36 pytestCheckHook
37 ];
38
39 pythonImportsCheck = [
40 "aio_geojson_geonetnz_quakes"
41 ];
42
43 meta = with lib; {
44 description = "Python module for accessing the GeoNet NZ Quakes GeoJSON feeds";
45 homepage = "https://github.com/exxamalte/python-aio-geojson-geonetnz-quakes";
46 changelog = "https://github.com/exxamalte/python-aio-geojson-geonetnz-quakes/blob/v${version}/CHANGELOG.md";
47 license = with licenses; [ asl20 ];
48 maintainers = with maintainers; [ fab ];
49 };
50}