python3Packages.aiopvpc: 2.0.2 -> 2.1.2

This commit is contained in:
Fabian Affolter 2021-06-01 12:01:10 +02:00
parent 565c83c7a8
commit adc36dcaf8

View file

@ -1,28 +1,28 @@
{ lib { lib
, aiohttp , aiohttp
, async-timeout , async-timeout
, backports-zoneinfo
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, fetchpatch
, poetry-core , poetry-core
, pytest-asyncio , pytest-asyncio
, pytest-timeout , pytest-timeout
, pytestCheckHook , pytestCheckHook
, pythonOlder , pythonOlder
, pytz , tzdata
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "aiopvpc"; pname = "aiopvpc";
version = "2.0.2"; version = "2.1.2";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.8";
format = "pyproject"; format = "pyproject";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "azogue"; owner = "azogue";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "1ajs4kbdlfn4h7f3d6lwkp4yl1rl7zyvj997nhsz93jjwxbajkpv"; sha256 = "0s8ki46dh39kw6qvsjcfcxa0gblyi33m3hry137kbi4lw5ws6qhr";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
@ -31,7 +31,8 @@ buildPythonPackage rec {
propagatedBuildInputs = [ propagatedBuildInputs = [
aiohttp aiohttp
pytz backports-zoneinfo
tzdata
async-timeout async-timeout
]; ];
@ -41,17 +42,8 @@ buildPythonPackage rec {
pytestCheckHook pytestCheckHook
]; ];
patches = [
# Switch to poetry-core, https://github.com/azogue/aiopvpc/pull/10
(fetchpatch {
name = "use-peotry-core.patch";
url = "https://github.com/azogue/aiopvpc/commit/4bc2740ffd485a60acf579b4f3eb5ee6a353245c.patch";
sha256 = "0ynj7pqq3akdvdrvqcwnnslay3mn1q92qhk8fg95ppflzscixli6";
})
];
postPatch = '' postPatch = ''
substituteInPlace pytest.ini --replace \ substituteInPlace pyproject.toml --replace \
" --cov --cov-report term --cov-report html" "" " --cov --cov-report term --cov-report html" ""
''; '';