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