nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 aiohttp,
4 buildPythonPackage,
5 fetchFromGitHub,
6 pytest-asyncio,
7 pytestCheckHook,
8 setuptools,
9}:
10
11buildPythonPackage rec {
12 pname = "pysqueezebox";
13 version = "0.14.0";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "rajlaud";
18 repo = "pysqueezebox";
19 tag = "v${version}";
20 hash = "sha256-aJKUgFTAfBZzzhtzklzOCgknk4Yk2i8YPqeVR6/444Q=";
21 };
22
23 build-system = [ setuptools ];
24
25 dependencies = [
26 aiohttp
27 ];
28
29 nativeCheckInputs = [
30 pytest-asyncio
31 pytestCheckHook
32 ];
33
34 pythonImportsCheck = [ "pysqueezebox" ];
35
36 disabledTests = [
37 # Test contacts 192.168.1.1
38 "test_bad_response"
39 ];
40
41 disabledTestPaths = [
42 # Tests require network access
43 "tests/test_integration.py"
44 ];
45
46 meta = {
47 description = "Asynchronous library to control Logitech Media Server";
48 homepage = "https://github.com/rajlaud/pysqueezebox";
49 changelog = "https://github.com/rajlaud/pysqueezebox/releases/tag/${src.tag}";
50 license = lib.licenses.asl20;
51 maintainers = with lib.maintainers; [ nyanloutre ];
52 };
53}