Merge pull request #199390 from fabaff/aiolifx-bump

python310Packages.zamg: init at 0.1.1
This commit is contained in:
Fabian Affolter 2022-11-03 21:34:27 +01:00 committed by GitHub
commit 31d2f86df8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 52 additions and 0 deletions

View File

@ -0,0 +1,50 @@
{ lib
, aiohttp
, aresponses
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pythonOlder
}:
buildPythonPackage rec {
pname = "zamg";
version = "0.1.1";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "killer0071234";
repo = "python-zamg";
rev = "refs/tags/v${version}";
hash = "sha256-mVJ1zuh3v803XgynQiUvt6whTmXxGS7SEtr6IDm4kz4=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace " --cov" ""
'';
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
aiohttp
];
# Module has no tests
doCheck = false;
pythonImportsCheck = [
"zamg"
];
meta = with lib; {
description = "Library to read weather data from ZAMG Austria";
homepage = "https://github.com/killer0071234/python-zamg";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}

View File

@ -12154,6 +12154,8 @@ self: super: with self; {
zake = callPackage ../development/python-modules/zake { };
zamg = callPackage ../development/python-modules/zamg { };
zarr = callPackage ../development/python-modules/zarr { };
zc-buildout = callPackage ../development/python-modules/buildout { };