Skip to content

Commit

Permalink
Merge pull request #324734 from natsukium/mygpoclient
Browse files Browse the repository at this point in the history
python311Packages.mygpoclient: 1.8 -> 1.9
  • Loading branch information
natsukium authored Jul 13, 2024
2 parents 6b87da8 + 254b726 commit 0c6d6d9
Showing 1 changed file with 17 additions and 10 deletions.
27 changes: 17 additions & 10 deletions pkgs/development/python-modules/mygpoclient/default.nix
Original file line number Diff line number Diff line change
@@ -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=";
};

postPatch = ''
substituteInPlace mygpoclient/*_test.py \
--replace-quiet "assertEquals" "assertEqual" \
--replace-quiet "assert_" "assertTrue"
'';

build-system = [ setuptools ];

pythonImportsCheck = [ "mygpoclient" ];

nativeCheckInputs = [
nose
minimock
pytestCheckHook
];

checkPhase = ''
nosetests
'';

doCheck = (!stdenv.isDarwin);
__darwinAllowLocalNetworking = true;

meta = with lib; {
description = "Gpodder.net client library";
Expand Down

0 comments on commit 0c6d6d9

Please sign in to comment.