python3Packages.accuweather: 0.1.0 -> 0.1.1

This commit is contained in:
Fabian Affolter 2021-04-01 11:56:38 +02:00
parent 6373ef78c6
commit f9848e6610

View file

@ -1,47 +1,48 @@
{ lib { lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, pytestrunner
, aiohttp , aiohttp
, aioresponses , aioresponses
, pytestCheckHook , buildPythonPackage
, pytestcov , fetchFromGitHub
, pytest-asyncio , pytest-asyncio
, pytest-error-for-skips
, pytestCheckHook
, pythonOlder
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "accuweather"; pname = "accuweather";
version = "0.1.0"; version = "0.1.1";
disabled = pythonOlder "3.6"; disabled = pythonOlder "3.6";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "bieniu"; owner = "bieniu";
repo = pname; repo = pname;
rev = version; rev = version;
sha256 = "0jp2x7fgg1shgr1fx296rni00lmjjmjgg141giljzizgd04dwgy3"; sha256 = "sha256-fjOwa13hxY8/gCM6TCAFWVmEY1oZyqKyc6o3OSsxHpY=";
}; };
postPatch = '' postPatch = ''
# we don't have pytest-error-for-skips packaged substituteInPlace setup.py \
substituteInPlace pytest.ini --replace "--error-for-skips" "" --replace "pytest-runner" ""
substituteInPlace pytest.ini \
--replace "--cov --cov-report term-missing" ""
''; '';
nativeBuildInputs = [ pytestrunner ]; propagatedBuildInputs = [
aiohttp
propagatedBuildInputs = [ aiohttp ]; ];
checkInputs = [ checkInputs = [
aioresponses aioresponses
pytestCheckHook
pytestcov
pytest-asyncio pytest-asyncio
pytest-error-for-skips
pytestCheckHook
]; ];
pythonImportsCheck = [ "accuweather" ];
meta = with lib; { meta = with lib; {
description = description = "Python wrapper for getting weather data from AccuWeather servers";
"Python wrapper for getting weather data from AccuWeather servers.";
homepage = "https://github.com/bieniu/accuweather"; homepage = "https://github.com/bieniu/accuweather";
license = licenses.asl20; license = licenses.asl20;
maintainers = with maintainers; [ jamiemagee ]; maintainers = with maintainers; [ jamiemagee ];