Files
nixpkgs/pkgs/development/python-modules/aiokef/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

50 lines
938 B
Nix

{
lib,
async-timeout,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pytest-cov-stub,
pythonOlder,
tenacity,
}:
buildPythonPackage rec {
pname = "aiokef";
version = "0.2.17";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "basnijholt";
repo = "aiokef";
rev = "v${version}";
sha256 = "0ms0dwrpj80w55svcppbnp7vyl5ipnjfp1c436k5c7pph4q5pxk9";
};
postPatch = ''
substituteInPlace tox.ini \
--replace "--mypy" ""
'';
propagatedBuildInputs = [
async-timeout
tenacity
];
nativeCheckInputs = [
pytestCheckHook
pytest-cov-stub
];
enabledTestPaths = [ "tests" ];
pythonImportsCheck = [ "aiokef" ];
meta = {
description = "Python API for KEF speakers";
homepage = "https://github.com/basnijholt/aiokef";
license = with lib.licenses; [ mit ];
maintainers = with lib.maintainers; [ fab ];
};
}