depot/third_party/nixpkgs/pkgs/development/python-modules/aiovlc/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

48 lines
1 KiB
Nix

{
lib,
buildPythonPackage,
click,
fetchFromGitHub,
pytest-asyncio,
pytest-timeout,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "aiovlc";
version = "0.3.2";
format = "setuptools";
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "MartinHjelmare";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-+IpWX661Axl2Ke1NGN6W9CMMQMEu7EQ/2PeRkkByAxI=";
};
postPatch = ''
substituteInPlace pyproject.toml --replace \
" --cov=aiovlc --cov-report=term-missing:skip-covered" ""
'';
propagatedBuildInputs = [ click ];
nativeCheckInputs = [
pytest-asyncio
pytest-timeout
pytestCheckHook
];
pythonImportsCheck = [ "aiovlc" ];
meta = with lib; {
description = "Python module to control VLC";
homepage = "https://github.com/MartinHjelmare/aiovlc";
changelog = "https://github.com/MartinHjelmare/aiovlc/blob/v${version}/CHANGELOG.md";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}