python3Packages.gios: init at 1.0.1

This commit is contained in:
Fabian Affolter 2021-05-28 09:20:40 +02:00 committed by Martin Weinelt
parent 5a819352ad
commit 1153168927
2 changed files with 57 additions and 0 deletions

View File

@ -0,0 +1,55 @@
{ lib
, aiohttp
, aioresponses
, buildPythonPackage
, fetchFromGitHub
, pytest-asyncio
, pytest-error-for-skips
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "gios";
version = "1.0.1";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "bieniu";
repo = pname;
rev = version;
sha256 = "031z5j1j961pcw8s4ajj5z2xn2jxb2hyfn3x3bxbaagwl9a5qkvn";
};
propagatedBuildInputs = [
aiohttp
];
checkInputs = [
aioresponses
pytest-asyncio
pytest-error-for-skips
pytestCheckHook
];
postPatch = ''
substituteInPlace setup.cfg \
--replace "--cov --cov-report term-missing " ""
substituteInPlace setup.py \
--replace "pytest-runner" ""
'';
disabledTests = [
# Test requires network access
"test_invalid_station_id"
];
pythonImportsCheck = [ "gios" ];
meta = with lib; {
description = "Python client for getting air quality data from GIOS";
homepage = "https://github.com/bieniu/gios";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}

View File

@ -2786,6 +2786,8 @@ in {
gin-config = callPackage ../development/python-modules/gin-config { };
gios = callPackage ../development/python-modules/gios { };
gipc = callPackage ../development/python-modules/gipc { };
git-annex-adapter =