504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
47 lines
965 B
Nix
47 lines
965 B
Nix
{ lib
|
|
, async-timeout
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, tenacity
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aiokef";
|
|
version = "0.2.17";
|
|
format = "setuptools";
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "basnijholt";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "0ms0dwrpj80w55svcppbnp7vyl5ipnjfp1c436k5c7pph4q5pxk9";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace tox.ini \
|
|
--replace "--cov --cov-append --cov-fail-under=30 --cov-report=" "" \
|
|
--replace "--mypy" ""
|
|
'';
|
|
|
|
propagatedBuildInputs = [
|
|
async-timeout
|
|
tenacity
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pytestFlagsArray = [ "tests" ];
|
|
pythonImportsCheck = [ "aiokef" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python API for KEF speakers";
|
|
homepage = "https://github.com/basnijholt/aiokef";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|