nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 aiohttp,
4 aioresponses,
5 buildPythonPackage,
6 dateparser,
7 fetchFromGitHub,
8 haversine,
9 mock,
10 pytest-asyncio,
11 pytestCheckHook,
12 requests,
13 setuptools,
14 xmltodict,
15}:
16
17buildPythonPackage rec {
18 pname = "aio-georss-client";
19 version = "0.14";
20 pyproject = true;
21
22 src = fetchFromGitHub {
23 owner = "exxamalte";
24 repo = "python-aio-georss-client";
25 tag = "v${version}";
26 hash = "sha256-d5QKF/aDLzZ2/Pbm6VygsSYWab7Jqs/5zTeKHg6Zr74=";
27 };
28
29 __darwinAllowLocalNetworking = true;
30
31 build-system = [ setuptools ];
32
33 dependencies = [
34 aiohttp
35 haversine
36 xmltodict
37 requests
38 dateparser
39 ];
40
41 nativeCheckInputs = [
42 aioresponses
43 mock
44 pytest-asyncio
45 pytestCheckHook
46 ];
47
48 pythonImportsCheck = [ "aio_georss_client" ];
49
50 meta = {
51 # https://github.com/exxamalte/python-aio-georss-client/issues/63
52 broken = lib.versionAtLeast xmltodict.version "1";
53 description = "Python library for accessing GeoRSS feeds";
54 homepage = "https://github.com/exxamalte/python-aio-georss-client";
55 changelog = "https://github.com/exxamalte/python-aio-georss-client/blob/v${version}/CHANGELOG.md";
56 license = with lib.licenses; [ asl20 ];
57 maintainers = with lib.maintainers; [ fab ];
58 };
59}