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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
fetchpatch,
pythonOlder,
setuptools,
aiohttp,
click,
construct,
pycryptodomex,
pytestCheckHook,
pytest-asyncio,
asynctest,
}:
buildPythonPackage rec {
pname = "pyps4-2ndscreen";
version = "1.3.1";
pyproject = true;
src = fetchFromGitHub {
owner = "ktnrg45";
repo = "pyps4-2ndscreen";
tag = version;
hash = "sha256-AXU9WJ7kT/0ev1Cn+CYhEieR7IM5VXebxQYWUS8bdds=";
};
patches = [
# https://github.com/ktnrg45/pyps4-2ndscreen/pull/61
(fetchpatch {
name = "replace-async-timeout-with-asyncio.timeout.patch";
url = "https://github.com/ktnrg45/pyps4-2ndscreen/commit/c3c89f9cce09d91e2b325474d28d7f1b3ccdf0f4.patch";
hash = "sha256-igLa+DUvQWUZtrHiq9UXTSG2h7cktElaXbTsxYPEeLM=";
})
];
build-system = [ setuptools ];
dependencies = [
aiohttp
click
construct
pycryptodomex
];
nativeCheckInputs = [
pytest-asyncio
pytestCheckHook
asynctest
];
# Disable tests for Python 3.11+ since they all require asynctest
doCheck = pythonOlder "3.11";
pythonImportsCheck = [ "pyps4_2ndscreen" ];
meta = {
description = "PS4 2nd Screen Python Library";
homepage = "https://github.com/ktnrg45/pyps4-2ndscreen";
changelog = "https://github.com/ktnrg45/pyps4-2ndscreen/releases/tag/${version}";
license = lib.licenses.lgpl2Plus;
maintainers = [ lib.maintainers.jamiemagee ];
};
}
|