1{
2 aiohttp,
3 aresponses,
4 buildPythonPackage,
5 fetchFromGitHub,
6 freezegun,
7 lib,
8 poetry-core,
9 pytest-cov-stub,
10 pytestCheckHook,
11 syrupy,
12}:
13
14buildPythonPackage rec {
15 pname = "pysmhi";
16 version = "1.0.2";
17 pyproject = true;
18
19 src = fetchFromGitHub {
20 owner = "gjohansson-ST";
21 repo = "pysmhi";
22 tag = "v${version}";
23 hash = "sha256-9jsSvitxcjH2oFCdSm1203UwG5xjOwQDTaU4Z9Cqs+A=";
24 };
25
26 build-system = [ poetry-core ];
27
28 dependencies = [
29 aiohttp
30 ];
31
32 pythonImportsCheck = [ "pysmhi" ];
33
34 nativeCheckInputs = [
35 aresponses
36 freezegun
37 pytest-cov-stub
38 pytestCheckHook
39 syrupy
40 ];
41
42 meta = {
43 changelog = "https://github.com/gjohansson-ST/pysmhi/releases/tag/${src.tag}";
44 description = "Retrieve open data from SMHI api";
45 homepage = "https://github.com/gjohansson-ST/pysmhi";
46 license = lib.licenses.mit;
47 maintainers = with lib.maintainers; [ dotlambda ];
48 };
49}