1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 buildPythonPackage,
6 nose,
7 minimock,
8}:
9
10buildPythonPackage rec {
11 pname = "mypgoclient";
12 version = "1.8";
13
14 src = fetchFromGitHub {
15 owner = "gpodder";
16 repo = "mygpoclient";
17 rev = version;
18 sha256 = "0aa28wc55x3rxa7clwfv5v5500ffyaq0vkxaa3v01y1r93dxkdvp";
19 };
20
21 nativeCheckInputs = [
22 nose
23 minimock
24 ];
25
26 checkPhase = ''
27 nosetests
28 '';
29
30 doCheck = (!stdenv.isDarwin);
31
32 meta = with lib; {
33 description = "A gpodder.net client library";
34 longDescription = ''
35 The mygpoclient library allows developers to utilize a Pythonic interface
36 to the gpodder.net web services.
37 '';
38 homepage = "https://github.com/gpodder/mygpoclient";
39 license = with licenses; [ gpl3 ];
40 maintainers = with maintainers; [ ];
41 };
42}