1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 georss-client,
6 pytestCheckHook,
7 pythonOlder,
8 setuptools,
9}:
10
11buildPythonPackage rec {
12 pname = "georss-ingv-centro-nazionale-terremoti-client";
13 version = "0.7";
14 pyproject = true;
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchFromGitHub {
19 owner = "exxamalte";
20 repo = "python-georss-ingv-centro-nazionale-terremoti-client";
21 tag = "v${version}";
22 hash = "sha256-J72yd1D4mKCOsBRLMUXKnxmjr6g0IQApTTrWjklczN8=";
23 };
24
25 nativeBuildInputs = [ setuptools ];
26
27 propagatedBuildInputs = [ georss-client ];
28
29 nativeCheckInputs = [ pytestCheckHook ];
30
31 pythonImportsCheck = [ "georss_ingv_centro_nazionale_terremoti_client" ];
32
33 meta = with lib; {
34 description = "Python library for accessing the INGV Centro Nazionale Terremoti GeoRSS feed";
35 homepage = "https://github.com/exxamalte/python-georss-ingv-centro-nazionale-terremoti-client";
36 changelog = "https://github.com/exxamalte/python-georss-ingv-centro-nazionale-terremoti-client/releases/tag/v${version}";
37 license = with licenses; [ asl20 ];
38 maintainers = with maintainers; [ fab ];
39 };
40}