nautilus: fix cross compilation (#373662)
[NixPkgs.git] / pkgs / development / python-modules / smhi-pkg / default.nix
bloba234026958f1f67c4a636ad09f65cd5a72894adc
2   lib,
3   aiohttp,
4   buildPythonPackage,
5   fetchFromGitHub,
6   pytest-asyncio,
7   pytestCheckHook,
8 }:
10 buildPythonPackage rec {
11   pname = "smhi-pkg";
12   version = "1.0.19";
13   format = "setuptools";
15   src = fetchFromGitHub {
16     owner = "joysoftware";
17     repo = "pypi_smhi";
18     tag = version;
19     hash = "sha256-8jx2lDBXflnt/Ou+7rnetPEnvpsJ72OWenw8lct+u3M=";
20   };
22   propagatedBuildInputs = [ aiohttp ];
24   nativeCheckInputs = [
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   };