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