mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 20:53:48 +00:00
0215034f25
when they already rely on SRI hashes.
48 lines
1.1 KiB
Nix
48 lines
1.1 KiB
Nix
{ lib
|
|
, aiohttp
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytest-asyncio
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "smhi-pkg";
|
|
version = "1.0.16";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "joysoftware";
|
|
repo = "pypi_smhi";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-jcIXzAZO9SxC/0apdjAVv1GmBTbdlasfXr1/Tj9adNc=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|