1{
2 buildPythonPackage,
3 faust-cchardet,
4 fetchFromGitHub,
5 httplib2,
6 lib,
7 pytestCheckHook,
8 setuptools,
9}:
10
11buildPythonPackage rec {
12 pname = "pytouchline-extended";
13 version = "0.4.6";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "brondum";
18 repo = "pytouchline";
19 tag = version;
20 hash = "sha256-VENKzcIsh8KFvqG+JzwinkCNqQkPpSq3zusiGctGU+Y=";
21 };
22
23 postPatch = ''
24 substituteInPlace setup.py \
25 --replace-fail '$GITHUB_REF_NAME' '${version}'
26 '';
27
28 build-system = [ setuptools ];
29
30 dependencies = [
31 faust-cchardet
32 httplib2
33 ];
34
35 pythonImportsCheck = [ "pytouchline_extended" ];
36
37 nativeCheckInputs = [
38 pytestCheckHook
39 ];
40
41 meta = {
42 changelog = "https://github.com/brondum/pytouchline/releases/tag/${src.tag}";
43 description = "Roth Touchline interface library";
44 homepage = "https://github.com/brondum/pytouchline";
45 license = lib.licenses.mit;
46 maintainers = with lib.maintainers; [ dotlambda ];
47 };
48}