depot/third_party/nixpkgs/pkgs/development/python-modules/smhi-pkg/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

47 lines
1.1 KiB
Nix

{
lib,
aiohttp,
buildPythonPackage,
fetchFromGitHub,
pytest-asyncio,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "smhi-pkg";
version = "1.0.17";
format = "setuptools";
src = fetchFromGitHub {
owner = "joysoftware";
repo = "pypi_smhi";
rev = "refs/tags/${version}";
hash = "sha256-dJh44JGWy3VafTnwwxWcr5cXClmzY1YuySy1RJzOak8=";
};
propagatedBuildInputs = [ aiohttp ];
nativeCheckInputs = [
pytest-asyncio
pytestCheckHook
];
disabledTests = [
# Disable tests that needs network access
"test_smhi_integration_test"
"test_smhi_async_integration_test"
"test_smhi_async_integration_test_use_session"
"test_smhi_async_get_forecast_integration2"
"test_async_error_from_api"
];
pythonImportsCheck = [ "smhi" ];
meta = with lib; {
description = "Python library for accessing SMHI open forecast data";
homepage = "https://github.com/joysoftware/pypi_smhi";
changelog = "https://github.com/joysoftware/pypi_smhi/releases/tag/${version}";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}