nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 aio-geojson-client,
4 aiohttp,
5 aioresponses,
6 buildPythonPackage,
7 fetchFromGitHub,
8 pytest-asyncio,
9 pytestCheckHook,
10 pytz,
11 setuptools,
12}:
13
14buildPythonPackage rec {
15 pname = "aio-geojson-usgs-earthquakes";
16 version = "0.4";
17 pyproject = true;
18
19 src = fetchFromGitHub {
20 owner = "exxamalte";
21 repo = "python-aio-geojson-usgs-earthquakes";
22 tag = "v${version}";
23 hash = "sha256-UzLnctft/D38bqClqyyJ4b5GvVXM4CFSd6TypuLo0Y4=";
24 };
25
26 build-system = [ setuptools ];
27
28 dependencies = [
29 aio-geojson-client
30 aiohttp
31 pytz
32 ];
33
34 nativeCheckInputs = [
35 aioresponses
36 pytest-asyncio
37 pytestCheckHook
38 ];
39
40 pythonImportsCheck = [ "aio_geojson_usgs_earthquakes" ];
41
42 __darwinAllowLocalNetworking = true;
43
44 meta = {
45 description = "Module for accessing the U.S. Geological Survey Earthquake Hazards Program feeds";
46 homepage = "https://github.com/exxamalte/python-aio-geojson-usgs-earthquakes";
47 changelog = "https://github.com/exxamalte/python-aio-geojson-usgs-earthquakes/blob/v${version}/CHANGELOG.md";
48 license = lib.licenses.asl20;
49 maintainers = with lib.maintainers; [ fab ];
50 };
51}