1{
2 lib,
3 beautifulsoup4,
4 buildPythonPackage,
5 fetchFromGitHub,
6 lxml,
7 pythonOlder,
8 pytestCheckHook,
9 setuptools,
10}:
11
12buildPythonPackage rec {
13 pname = "pymeteoclimatic";
14 version = "0.1.0";
15 pyproject = true;
16
17 disabled = pythonOlder "3.8";
18
19 src = fetchFromGitHub {
20 owner = "adrianmo";
21 repo = "pymeteoclimatic";
22 tag = version;
23 hash = "sha256-rP0+OYDnQ4GuoV7DzR6jtgH6ilTMLjdaEFJcz3L0GYQ=";
24 };
25
26 nativeBuildInputs = [ setuptools ];
27
28 propagatedBuildInputs = [
29 beautifulsoup4
30 lxml
31 ];
32
33 nativeCheckInputs = [ pytestCheckHook ];
34
35 pythonImportsCheck = [ "meteoclimatic" ];
36
37 meta = with lib; {
38 description = "Python wrapper around the Meteoclimatic service";
39 homepage = "https://github.com/adrianmo/pymeteoclimatic";
40 changelog = "https://github.com/adrianmo/pymeteoclimatic/releases/tag/${version}";
41 license = with licenses; [ mit ];
42 maintainers = with maintainers; [ fab ];
43 };
44}