blob: 3f2f3af9ebda5b431a78c5f67af77bb7c14ee3d5 (
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
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
docopt,
pyserial,
pyserial-asyncio-fast,
setuptools,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "rflink";
version = "0.0.67";
pyproject = true;
src = fetchFromGitHub {
owner = "aequitas";
repo = "python-rflink";
tag = version;
hash = "sha256-LAmn9/l+J++CvRa5gypuoQ41mZVSoVqbPpbqVSP6CN4=";
};
build-system = [ setuptools ];
dependencies = [
docopt
pyserial
pyserial-asyncio-fast
];
nativeCheckInputs = [ pytestCheckHook ];
postPatch = ''
substituteInPlace setup.py \
--replace "version=version_from_git()" "version='${version}'"
'';
pythonImportsCheck = [ "rflink.protocol" ];
meta = {
description = "Library and CLI tools for interacting with RFlink 433MHz transceiver";
homepage = "https://github.com/aequitas/python-rflink";
changelog = "https://github.com/aequitas/python-rflink/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dotlambda ];
};
}
|