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