python3Packages.accuweather: 0.0.11 -> 0.1.0
This commit is contained in:
parent
842e35e281
commit
c7b6d1a466
@ -1,22 +1,43 @@
|
|||||||
{ aiohttp, buildPythonPackage, fetchFromGitHub, lib, pytest, pytestCheckHook
|
{ lib
|
||||||
, pytestcov, pytestrunner, pytest-asyncio, python, pythonOlder }:
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, pythonOlder
|
||||||
|
, pytestrunner
|
||||||
|
, aiohttp
|
||||||
|
, aioresponses
|
||||||
|
, pytestCheckHook
|
||||||
|
, pytestcov
|
||||||
|
, pytest-asyncio
|
||||||
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "accuweather";
|
pname = "accuweather";
|
||||||
version = "0.0.11";
|
version = "0.1.0";
|
||||||
|
|
||||||
disabled = pythonOlder "3.8";
|
disabled = pythonOlder "3.6";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "bieniu";
|
owner = "bieniu";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "1sgbw9yldf81phwx6pbvqg9sp767whxymyj0ca9pwx1r6ipr080h";
|
sha256 = "0jp2x7fgg1shgr1fx296rni00lmjjmjgg141giljzizgd04dwgy3";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
# we don't have pytest-error-for-skips packaged
|
||||||
|
substituteInPlace pytest.ini --replace "--error-for-skips" ""
|
||||||
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [ pytestrunner ];
|
nativeBuildInputs = [ pytestrunner ];
|
||||||
|
|
||||||
propagatedBuildInputs = [ aiohttp ];
|
propagatedBuildInputs = [ aiohttp ];
|
||||||
checkInputs = [ pytestCheckHook pytestcov pytest-asyncio ];
|
|
||||||
|
checkInputs = [
|
||||||
|
aioresponses
|
||||||
|
pytestCheckHook
|
||||||
|
pytestcov
|
||||||
|
pytest-asyncio
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description =
|
description =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user