2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytestCheckHook
|
|
|
|
, aresponses
|
|
|
|
, coverage
|
|
|
|
, mypy
|
|
|
|
, pytest-asyncio
|
|
|
|
, pytest-cov
|
|
|
|
, pytest-mock
|
2022-01-25 03:21:06 +00:00
|
|
|
, pythonOlder
|
2021-02-05 17:12:51 +00:00
|
|
|
, aiohttp
|
|
|
|
, attrs
|
|
|
|
, cattrs
|
|
|
|
, yarl
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "bsblan";
|
2022-01-25 03:21:06 +00:00
|
|
|
version = "0.5.0";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "liudger";
|
|
|
|
repo = "python-bsblan";
|
|
|
|
rev = "v.${version}";
|
2022-01-25 03:21:06 +00:00
|
|
|
sha256 = "1j41y2njnalcsp1vjqwl508yp3ki82lv8108ijz52hprhrq4fffb";
|
2021-02-05 17:12:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
attrs
|
|
|
|
cattrs
|
|
|
|
yarl
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
aresponses
|
|
|
|
coverage
|
|
|
|
mypy
|
|
|
|
pytest-asyncio
|
|
|
|
pytest-cov
|
|
|
|
pytest-mock
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2022-01-25 03:21:06 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"bsblan"
|
|
|
|
];
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python client for BSB-Lan";
|
|
|
|
homepage = "https://github.com/liudger/python-bsblan";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|