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