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
57
58
59
60
61
62
63
|
{
lib,
async-timeout,
attrs,
buildPythonPackage,
faust-cchardet,
fetchFromGitHub,
httpx,
orjson,
packaging,
pythonOlder,
setuptools,
typing-extensions,
xmltodict,
}:
buildPythonPackage rec {
pname = "axis";
version = "66";
pyproject = true;
disabled = pythonOlder "3.12";
src = fetchFromGitHub {
owner = "Kane610";
repo = "axis";
tag = "v${version}";
hash = "sha256-h3ySZeGlWeWIywtZoK8LcnxaqRe6lvJ7VTds1J+Jc3M=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "setuptools==80.9.0" "setuptools" \
--replace-fail "wheel==0.46.1" "wheel"
'';
build-system = [ setuptools ];
dependencies = [
async-timeout
attrs
faust-cchardet
httpx
orjson
packaging
typing-extensions
xmltodict
];
# Tests requires a server on localhost
doCheck = false;
pythonImportsCheck = [ "axis" ];
meta = {
description = "Python library for communicating with devices from Axis Communications";
homepage = "https://github.com/Kane610/axis";
changelog = "https://github.com/Kane610/axis/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
mainProgram = "axis";
};
}
|