mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-20 20:02:14 +03:00
python3Packages.smhi-pkg: init at 1.0.14
This commit is contained in:
parent
6942038dbf
commit
019cf935eb
47
pkgs/development/python-modules/smhi-pkg/default.nix
Normal file
47
pkgs/development/python-modules/smhi-pkg/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -7997,6 +7997,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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user