2022-02-20 05:27:41 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, asynctest
|
|
|
|
, pytest-asyncio
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dynalite-devices";
|
2022-04-15 01:41:22 +00:00
|
|
|
version = "0.46";
|
2022-02-20 05:27:41 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ziv1234";
|
|
|
|
repo = "python-dynalite-devices";
|
2022-04-15 01:41:22 +00:00
|
|
|
rev = "v${version}"; # https://github.com/ziv1234/python-dynalite-devices/issues/2
|
2022-02-20 05:27:41 +00:00
|
|
|
hash = "sha256-Fju2JpFkQBCbOln7r3L+crv82TI2SkdPJ1oaK7PEifo=";
|
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
sed -i '/^addopts/d' setup.cfg
|
|
|
|
'';
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
asynctest
|
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "dynalite_devices_lib" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "An unofficial Dynalite DyNET interface creating devices";
|
|
|
|
homepage = "https://github.com/ziv1234/python-dynalite-devices";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|