1{
2 lib,
3 fetchFromGitHub,
4 buildPythonPackage,
5 setuptools,
6 minimock,
7 pytestCheckHook,
8}:
9
10buildPythonPackage rec {
11 pname = "mypgoclient";
12 version = "1.9";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "gpodder";
17 repo = "mygpoclient";
18 rev = version;
19 hash = "sha256-McHllitWiBiCdNuJlUg6K/vgr2l3ychu+KOx3r/UCv0=";
20 };
21
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
32 nativeCheckInputs = [
33 minimock
34 pytestCheckHook
35 ];
36
37 __darwinAllowLocalNetworking = true;
38
39 meta = with lib; {
40 description = "Gpodder.net client library";
41 longDescription = ''
42 The mygpoclient library allows developers to utilize a Pythonic interface
43 to the gpodder.net web services.
44 '';
45 homepage = "https://github.com/gpodder/mygpoclient";
46 license = with licenses; [ gpl3 ];
47 maintainers = [ ];
48 };
49}