Skip to content

Commit

Permalink
python311Packages.mygpoclient: 1.8 -> 1.9
Browse files Browse the repository at this point in the history
  • Loading branch information
natsukium committed Jul 5, 2024
1 parent fcef8d5 commit 254b726
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 254b726

Please sign in to comment.