blob: 97fff5b0687cdece3f3ea99388a9420ae48d11e4 (
plain) (
blame)
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
54
55
56
|
{ lib
, aiohttp
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, pythonOlder
, setuptools
, wheel
}:
buildPythonPackage rec {
pname = "pyprusalink";
version = "1.1.0";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "home-assistant-libs";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-XRtbb7kceiqi8pioTWStRo0drCtQfy1t62jCMihlIec=";
};
patches = [
# https://github.com/home-assistant-libs/pyprusalink/pull/55
(fetchpatch {
name = "unpin-setuptools-dependency.patch";
url = "https://github.com/home-assistant-libs/pyprusalink/commit/8efc3229c491a1763456f0f4017251d5789c6d0a.patch";
hash = "sha256-kTu1+IwDrcdqelyK/vfhxw8MQBis5I1jag7YTytKQhs=";
})
];
nativeBuildInputs = [
setuptools
wheel
];
propagatedBuildInputs = [
aiohttp
];
# Module doesn't have tests
doCheck = false;
pythonImportsCheck = [
"pyprusalink"
];
meta = with lib; {
description = "Library to communicate with PrusaLink ";
homepage = "https://github.com/home-assistant-libs/pyprusalink";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
};
}
|