2021-04-09 17:53:54 +02:00
|
|
|
{ lib
|
|
|
|
, pyserial
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "nad-receiver";
|
2021-08-08 19:20:51 +02:00
|
|
|
version = "0.3.0";
|
2021-04-09 17:53:54 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "joopert";
|
|
|
|
repo = "nad_receiver";
|
|
|
|
rev = version;
|
2021-08-08 19:20:51 +02:00
|
|
|
sha256 = "sha256-jRMk/yMA48ei+g/33+mMYwfwixaKTMYcU/z/VOoJbvY=";
|
2021-04-09 17:53:54 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
pyserial
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "nad_receiver" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python interface for NAD receivers";
|
|
|
|
homepage = "https://github.com/joopert/nad_receiver";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|