nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 poetry-core,
6 aiohttp,
7 async-upnp-client,
8 attrs,
9 click,
10}:
11
12buildPythonPackage rec {
13 pname = "python-songpal";
14 version = "0.16.2";
15 pyproject = true;
16
17 src = fetchFromGitHub {
18 owner = "rytilahti";
19 repo = "python-songpal";
20 tag = "release/${version}";
21 hash = "sha256-PYw6xlUtBrxl+YeVO/2Njt5LYWEprzGPVNk1Mlr83HM=";
22 };
23
24 build-system = [ poetry-core ];
25
26 dependencies = [
27 aiohttp
28 async-upnp-client
29 attrs
30 click
31 ];
32
33 # no tests implemented
34 doCheck = false;
35
36 pythonImportsCheck = [ "songpal" ];
37
38 meta = {
39 description = "Python library for interfacing with Sony's Songpal devices";
40 mainProgram = "songpal";
41 homepage = "https://github.com/rytilahti/python-songpal";
42 changelog = "https://github.com/rytilahti/python-songpal/blob/release/${version}/CHANGELOG.md";
43 license = lib.licenses.gpl3Only;
44 maintainers = with lib.maintainers; [ dotlambda ];
45 };
46}