mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-11-04 20:00:07 +00:00
51 lines
1.1 KiB
Nix
51 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pytest-asyncio,
|
|
pytest-cov-stub,
|
|
pytest-timeout,
|
|
pytestCheckHook,
|
|
setuptools,
|
|
sybil,
|
|
typer,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "aiovlc";
|
|
version = "0.8.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "MartinHjelmare";
|
|
repo = "aiovlc";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-/mKlxkzPdGW7kRS4Lgo6s0z2ADQy5BlTMpaPNrUckJk=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
optional-dependencies = {
|
|
cli = [ typer ];
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
pytest-asyncio
|
|
pytest-cov-stub
|
|
pytest-timeout
|
|
pytestCheckHook
|
|
sybil
|
|
]
|
|
++ lib.flatten (builtins.attrValues finalAttrs.passthru.optional-dependencies);
|
|
|
|
pythonImportsCheck = [ "aiovlc" ];
|
|
|
|
meta = {
|
|
description = "Python module to control VLC";
|
|
homepage = "https://github.com/MartinHjelmare/aiovlc";
|
|
changelog = "https://github.com/MartinHjelmare/aiovlc/blob/${finalAttrs.src.tag}/CHANGELOG.md";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
})
|