1{ lib
2, aiohttp
3, buildPythonPackage
4, fetchFromGitHub
5, pytest-asyncio
6, pytestCheckHook
7, pythonOlder
8}:
9
10buildPythonPackage rec {
11 pname = "pysqueezebox";
12 version = "0.7.0";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.6";
16
17 src = fetchFromGitHub {
18 owner = "rajlaud";
19 repo = pname;
20 rev = "refs/tags/v${version}";
21 hash = "sha256-nNCxptQDabNPKtKFy19kBl5rIhlHlgvvKkz/JWj3k8A=";
22 };
23
24 propagatedBuildInputs = [
25 aiohttp
26 ];
27
28 nativeCheckInputs = [
29 pytest-asyncio
30 pytestCheckHook
31 ];
32
33 pythonImportsCheck = [
34 "pysqueezebox"
35 ];
36
37 disabledTestPaths = [
38 # Tests require network access
39 "tests/test_integration.py"
40 ];
41
42 meta = with lib; {
43 description = "Asynchronous library to control Logitech Media Server";
44 homepage = "https://github.com/rajlaud/pysqueezebox";
45 license = licenses.asl20;
46 maintainers = with maintainers; [ nyanloutre ];
47 };
48}