nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 aiohttp,
4 aresponses,
5 async-timeout,
6 buildPythonPackage,
7 fetchFromGitHub,
8 poetry-core,
9 pytest-asyncio,
10 pytest-cov-stub,
11 pytestCheckHook,
12}:
13
14buildPythonPackage rec {
15 pname = "zamg";
16 version = "0.3.6";
17 pyproject = true;
18
19 src = fetchFromGitHub {
20 owner = "killer0071234";
21 repo = "python-zamg";
22 tag = "v${version}";
23 hash = "sha256-j864+3c0GDDftdLqLDD0hizT54c0IgTjT77jOneXlq0=";
24 };
25
26 pythonRelaxDeps = [ "async-timeout" ];
27
28 build-system = [ poetry-core ];
29
30 dependencies = [
31 aiohttp
32 async-timeout
33 ];
34
35 nativeCheckInputs = [
36 aresponses
37 pytest-asyncio
38 pytest-cov-stub
39 pytestCheckHook
40 ];
41
42 pythonImportsCheck = [ "zamg" ];
43
44 disabledTests = [
45 # Tests are outdated
46 "test_update_fail_3"
47 "test_properties_fail_2"
48 ];
49
50 meta = {
51 description = "Library to read weather data from ZAMG Austria";
52 homepage = "https://github.com/killer0071234/python-zamg";
53 changelog = "https://github.com/killer0071234/python-zamg/releases/tag/v${version}";
54 license = lib.licenses.mit;
55 maintainers = with lib.maintainers; [ fab ];
56 };
57}