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