Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / aiovlc / default.nix
blob39607c9fdde514355cb20bfddd1b814c49987c5e
1 { lib
2 , buildPythonPackage
3 , click
4 , fetchFromGitHub
5 , pytest-asyncio
6 , pytest-timeout
7 , pytestCheckHook
8 , pythonOlder
9 }:
11 buildPythonPackage rec {
12   pname = "aiovlc";
13   version = "0.3.2";
14   format = "setuptools";
16   disabled = pythonOlder "3.9";
18   src = fetchFromGitHub {
19     owner = "MartinHjelmare";
20     repo = pname;
21     rev = "refs/tags/v${version}";
22     hash = "sha256-+IpWX661Axl2Ke1NGN6W9CMMQMEu7EQ/2PeRkkByAxI=";
23   };
25   postPatch = ''
26     substituteInPlace pyproject.toml --replace \
27       " --cov=aiovlc --cov-report=term-missing:skip-covered" ""
28   '';
30   propagatedBuildInputs = [
31     click
32   ];
34   nativeCheckInputs = [
35     pytest-asyncio
36     pytest-timeout
37     pytestCheckHook
38   ];
40   pythonImportsCheck = [
41     "aiovlc"
42   ];
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   };