summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/python-songpal/default.nix
blob: 2e645f0e1b04438e3573907bcbf3abca4163ab68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  poetry-core,
  aiohttp,
  async-upnp-client,
  attrs,
  click,
}:

buildPythonPackage rec {
  pname = "python-songpal";
  version = "0.16.2";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "rytilahti";
    repo = "python-songpal";
    tag = "release/${version}";
    hash = "sha256-PYw6xlUtBrxl+YeVO/2Njt5LYWEprzGPVNk1Mlr83HM=";
  };

  build-system = [ poetry-core ];

  dependencies = [
    aiohttp
    async-upnp-client
    attrs
    click
  ];

  # no tests implemented
  doCheck = false;

  pythonImportsCheck = [ "songpal" ];

  meta = {
    description = "Python library for interfacing with Sony's Songpal devices";
    mainProgram = "songpal";
    homepage = "https://github.com/rytilahti/python-songpal";
    changelog = "https://github.com/rytilahti/python-songpal/blob/release/${version}/CHANGELOG.md";
    license = lib.licenses.gpl3Only;
    maintainers = with lib.maintainers; [ dotlambda ];
  };
}