ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / smhi-pkg / default.nix
blob529d3fe27d78a62820e60c83d9884099f6ee5528
1 { lib
2 , aiohttp
3 , buildPythonPackage
4 , fetchFromGitHub
5 , pytest-asyncio
6 , pytestCheckHook
7 }:
9 buildPythonPackage rec {
10   pname = "smhi-pkg";
11   version = "1.0.16";
13   src = fetchFromGitHub {
14     owner = "joysoftware";
15     repo = "pypi_smhi";
16     rev = "refs/tags/${version}";
17     sha256 = "sha256-jcIXzAZO9SxC/0apdjAVv1GmBTbdlasfXr1/Tj9adNc=";
18   };
20   propagatedBuildInputs = [
21     aiohttp
22   ];
24   checkInputs = [
25     pytest-asyncio
26     pytestCheckHook
27   ];
29   disabledTests = [
30     # Disable tests that needs network access
31     "test_smhi_integration_test"
32     "test_smhi_async_integration_test"
33     "test_smhi_async_integration_test_use_session"
34     "test_smhi_async_get_forecast_integration2"
35     "test_async_error_from_api"
36   ];
38   pythonImportsCheck = [ "smhi" ];
40   meta = with lib; {
41     description = "Python library for accessing SMHI open forecast data";
42     homepage = "https://github.com/joysoftware/pypi_smhi";
43     changelog = "https://github.com/joysoftware/pypi_smhi/releases/tag/${version}";
44     license = with licenses; [ mit ];
45     maintainers = with maintainers; [ fab ];
46   };