nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, georss-client
5, pytestCheckHook
6, pythonOlder
7}:
8
9buildPythonPackage rec {
10 pname = "georss-ign-sismologia-client";
11 version = "0.6";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.7";
15
16 src = fetchFromGitHub {
17 owner = "exxamalte";
18 repo = "python-georss-ign-sismologia-client";
19 rev = "refs/tags/v${version}";
20 hash = "sha256-OLX6Megl5l8KDnd/G16QJ/wQn5AQc2cZ+LCbjuHFbwo=";
21 };
22
23 propagatedBuildInputs = [
24 georss-client
25 ];
26
27 nativeCheckInputs = [
28 pytestCheckHook
29 ];
30
31 pythonImportsCheck = [
32 "georss_ign_sismologia_client"
33 ];
34
35 meta = with lib; {
36 description = "Python library for accessing the IGN Sismologia GeoRSS feed";
37 homepage = "https://github.com/exxamalte/python-georss-ign-sismologia-client";
38 changelog = "https://github.com/exxamalte/python-georss-ign-sismologia-client/blob/v0.6/CHANGELOG.md";
39 license = with licenses; [ asl20 ];
40 maintainers = with maintainers; [ fab ];
41 };
42}