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