1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-03 11:02:05 +00:00

Merge pull request #120550 from fabaff/smhi

This commit is contained in:
Martin Weinelt 2021-04-24 20:22:21 +02:00 committed by GitHub
commit 0ca4f6b739
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 51 additions and 1 deletions

View file

@ -0,0 +1,47 @@
{ lib
, aiohttp
, buildPythonPackage
, fetchFromGitHub
, pytest-asyncio
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "smhi-pkg";
version = "1.0.14";
src = fetchFromGitHub {
owner = "joysoftware";
repo = "pypi_smhi";
rev = version;
sha256 = "186xwrg3hvr0hszq2kxvygd241q2sp11gfk6mwj9z4zqywwfcbn3";
};
propagatedBuildInputs = [
aiohttp
];
checkInputs = [
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 ];
};
}

View file

@ -760,7 +760,7 @@
"smartthings" = ps: with ps; [ aiohttp-cors hass-nabucasa ]; # missing inputs: pysmartapp pysmartthings
"smarttub" = ps: with ps; [ python-smarttub ];
"smarty" = ps: with ps; [ ]; # missing inputs: pysmarty
"smhi" = ps: with ps; [ ]; # missing inputs: smhi-pkg
"smhi" = ps: with ps; [ smhi-pkg ];
"sms" = ps: with ps; [ python-gammu ];
"smtp" = ps: with ps; [ ];
"snapcast" = ps: with ps; [ snapcast ];

View file

@ -357,6 +357,7 @@ in with py.pkgs; buildPythonApplication rec {
"simulated"
"sleepiq"
"sma"
"smhi"
"sensor"
"slack"
"smarttub"

View file

@ -8003,6 +8003,8 @@ in {
smdebug-rulesconfig = callPackage ../development/python-modules/smdebug-rulesconfig { };
smhi-pkg = callPackage ../development/python-modules/smhi-pkg { };
smmap2 = throw "smmap2 has been deprecated, use smmap instead."; # added 2020-03-14
smmap = callPackage ../development/python-modules/smmap { };