1{ lib
2, pyserial
3, buildPythonPackage
4, fetchFromGitHub
5, pytestCheckHook
6}:
7
8buildPythonPackage rec {
9 pname = "nad-receiver";
10 version = "0.3.0";
11
12 src = fetchFromGitHub {
13 owner = "joopert";
14 repo = "nad_receiver";
15 rev = version;
16 hash = "sha256-jRMk/yMA48ei+g/33+mMYwfwixaKTMYcU/z/VOoJbvY=";
17 };
18
19 propagatedBuildInputs = [
20 pyserial
21 ];
22
23 nativeCheckInputs = [
24 pytestCheckHook
25 ];
26
27 pythonImportsCheck = [ "nad_receiver" ];
28
29 meta = with lib; {
30 description = "Python interface for NAD receivers";
31 homepage = "https://github.com/joopert/nad_receiver";
32 license = with licenses; [ mit ];
33 maintainers = with maintainers; [ fab ];
34 };
35}