Skip to content

Commit 0c6d6d9

Browse files
authored
Merge pull request #324734 from natsukium/mygpoclient
python311Packages.mygpoclient: 1.8 -> 1.9
2 parents 6b87da8 + 254b726 commit 0c6d6d9

File tree

1 file changed

+17
-10
lines changed

1 file changed

+17
-10
lines changed

pkgs/development/python-modules/mygpoclient/default.nix

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,40 @@
11
{
22
lib,
3-
stdenv,
43
fetchFromGitHub,
54
buildPythonPackage,
6-
nose,
5+
setuptools,
76
minimock,
7+
pytestCheckHook,
88
}:
99

1010
buildPythonPackage rec {
1111
pname = "mypgoclient";
12-
version = "1.8";
12+
version = "1.9";
13+
pyproject = true;
1314

1415
src = fetchFromGitHub {
1516
owner = "gpodder";
1617
repo = "mygpoclient";
1718
rev = version;
18-
sha256 = "0aa28wc55x3rxa7clwfv5v5500ffyaq0vkxaa3v01y1r93dxkdvp";
19+
hash = "sha256-McHllitWiBiCdNuJlUg6K/vgr2l3ychu+KOx3r/UCv0=";
1920
};
2021

22+
postPatch = ''
23+
substituteInPlace mygpoclient/*_test.py \
24+
--replace-quiet "assertEquals" "assertEqual" \
25+
--replace-quiet "assert_" "assertTrue"
26+
'';
27+
28+
build-system = [ setuptools ];
29+
30+
pythonImportsCheck = [ "mygpoclient" ];
31+
2132
nativeCheckInputs = [
22-
nose
2333
minimock
34+
pytestCheckHook
2435
];
2536

26-
checkPhase = ''
27-
nosetests
28-
'';
29-
30-
doCheck = (!stdenv.isDarwin);
37+
__darwinAllowLocalNetworking = true;
3138

3239
meta = with lib; {
3340
description = "Gpodder.net client library";

0 commit comments

Comments
 (0)