blob: c44a2d3c5461a553d18f35cdffa4d2a53643f58c (
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
47
48
49
50
51
52
53
|
{
lib,
buildPythonPackage,
casttube,
fetchFromGitHub,
pythonOlder,
protobuf,
setuptools,
zeroconf,
}:
buildPythonPackage rec {
pname = "pychromecast";
version = "14.0.9";
pyproject = true;
disabled = pythonOlder "3.11";
src = fetchFromGitHub {
owner = "home-assistant-libs";
repo = "pychromecast";
tag = version;
hash = "sha256-SpoVgXJV/9SVAcZXfeqpB3jkt9UUWcY9NBDGeIFhh4w=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "setuptools>=65.6,<81.0" setuptools \
--replace-fail "wheel>=0.37.1,<0.46.0" wheel
'';
build-system = [ setuptools ];
dependencies = [
casttube
protobuf
zeroconf
];
# no tests available
doCheck = false;
pythonImportsCheck = [ "pychromecast" ];
meta = {
description = "Library for Python to communicate with the Google Chromecast";
homepage = "https://github.com/home-assistant-libs/pychromecast";
changelog = "https://github.com/home-assistant-libs/pychromecast/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = [ ];
platforms = lib.platforms.unix;
};
}
|