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