1{
2 lib,
3 buildPythonPackage,
4 click,
5 fetchFromGitHub,
6 pytest-asyncio,
7 pytest-timeout,
8 pytestCheckHook,
9 pythonOlder,
10}:
11
12buildPythonPackage rec {
13 pname = "aiovlc";
14 version = "0.3.2";
15 format = "setuptools";
16
17 disabled = pythonOlder "3.9";
18
19 src = fetchFromGitHub {
20 owner = "MartinHjelmare";
21 repo = pname;
22 rev = "refs/tags/v${version}";
23 hash = "sha256-+IpWX661Axl2Ke1NGN6W9CMMQMEu7EQ/2PeRkkByAxI=";
24 };
25
26 postPatch = ''
27 substituteInPlace pyproject.toml --replace \
28 " --cov=aiovlc --cov-report=term-missing:skip-covered" ""
29 '';
30
31 propagatedBuildInputs = [ click ];
32
33 nativeCheckInputs = [
34 pytest-asyncio
35 pytest-timeout
36 pytestCheckHook
37 ];
38
39 pythonImportsCheck = [ "aiovlc" ];
40
41 meta = with lib; {
42 description = "Python module to control VLC";
43 homepage = "https://github.com/MartinHjelmare/aiovlc";
44 changelog = "https://github.com/MartinHjelmare/aiovlc/blob/v${version}/CHANGELOG.md";
45 license = licenses.asl20;
46 maintainers = with maintainers; [ fab ];
47 };
48}