Merge pull request #324734 from natsukium/mygpoclient

python311Packages.mygpoclient: 1.8 -> 1.9
This commit is contained in:
OTABI Tomoya 2024-07-13 10:36:05 +09:00 committed by GitHub
commit 0c6d6d9b01
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,33 +1,40 @@
{
lib,
stdenv,
fetchFromGitHub,
buildPythonPackage,
nose,
setuptools,
minimock,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "mypgoclient";
version = "1.8";
version = "1.9";
pyproject = true;
src = fetchFromGitHub {
owner = "gpodder";
repo = "mygpoclient";
rev = version;
sha256 = "0aa28wc55x3rxa7clwfv5v5500ffyaq0vkxaa3v01y1r93dxkdvp";
hash = "sha256-McHllitWiBiCdNuJlUg6K/vgr2l3ychu+KOx3r/UCv0=";
};
nativeCheckInputs = [
nose
minimock
];
checkPhase = ''
nosetests
postPatch = ''
substituteInPlace mygpoclient/*_test.py \
--replace-quiet "assertEquals" "assertEqual" \
--replace-quiet "assert_" "assertTrue"
'';
doCheck = (!stdenv.isDarwin);
build-system = [ setuptools ];
pythonImportsCheck = [ "mygpoclient" ];
nativeCheckInputs = [
minimock
pytestCheckHook
];
__darwinAllowLocalNetworking = true;
meta = with lib; {
description = "Gpodder.net client library";