Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / aiomusiccast / default.nix
blobf2639400bb725f54eb803fb4501619accfb23e3c
1 { lib
2 , buildPythonPackage
3 , pythonOlder
4 , fetchFromGitHub
5 , poetry-core
6 , aiohttp
7 , setuptools
8 }:
10 buildPythonPackage rec {
11   pname = "aiomusiccast";
12   version = "0.14.8";
13   format = "pyproject";
15   disabled = pythonOlder "3.8";
17   src = fetchFromGitHub {
18     owner = "vigonotion";
19     repo = "aiomusiccast";
20     rev = "refs/tags/${version}";
21     hash = "sha256-V4xl2QY+pPEnJtx7dxSNj/aXqHvV9Z6uuWgbVHNyLjA=";
22   };
24   postPatch = ''
25     substituteInPlace pyproject.toml \
26       --replace '"0.0.0"' '"${version}"'
27   '';
29   nativeBuildInputs = [
30     poetry-core
31   ];
33   propagatedBuildInputs = [
34     aiohttp
35     setuptools
36   ];
38   # upstream has no tests
39   doCheck = false;
41   pythonImportsCheck = [
42     "aiomusiccast"
43   ];
45   meta = with lib; {
46     description = "Companion library for musiccast devices intended for the Home Assistant integration";
47     homepage = "https://github.com/vigonotion/aiomusiccast";
48     changelog = "https://github.com/vigonotion/aiomusiccast/releases/tag/${version}";
49     license = licenses.mit;
50     maintainers = with maintainers; [ dotlambda ];
51   };