nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 aiohttp,
7 mashumaro,
8 requests,
9}:
10
11buildPythonPackage rec {
12 pname = "py-opensonic";
13 version = "8.1.1";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "khers";
18 repo = "py-opensonic";
19 tag = "v${version}";
20 hash = "sha256-/P/7ytA0YHuJZEq7KQosPBQM2vo6VAss1G8pTIEswJA=";
21 };
22
23 build-system = [ setuptools ];
24
25 dependencies = [
26 aiohttp
27 mashumaro
28 requests
29 ];
30
31 doCheck = false; # no tests
32
33 pythonImportsCheck = [
34 "libopensonic"
35 ];
36
37 meta = {
38 description = "Python library to wrap the Open Subsonic REST API";
39 homepage = "https://github.com/khers/py-opensonic";
40 changelog = "https://github.com/khers/py-opensonic/blob/${src.rev}/CHANGELOG.md";
41 license = lib.licenses.gpl3Only;
42 maintainers = with lib.maintainers; [ hexa ];
43 };
44}