Files
Ihar Hrachyshka cca3b04b44 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 19:01:23 +01:00

51 lines
1.0 KiB
Nix

{
lib,
aioresponses,
async-upnp-client,
buildPythonPackage,
fetchFromGitHub,
lxml,
pytestCheckHook,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "openhomedevice";
version = "2.3.1";
pyproject = true;
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "bazwilliams";
repo = "openhomedevice";
tag = version;
hash = "sha256-u05aciRFCnqMJRClUMApAPDLpXOKn4wUTLgvR7BVZTA=";
};
build-system = [ setuptools ];
dependencies = [
async-upnp-client
lxml
];
nativeCheckInputs = [
aioresponses
pytestCheckHook
];
pythonImportsCheck = [ "openhomedevice" ];
enabledTestPaths = [ "tests/*.py" ];
meta = {
description = "Python module to access Linn Ds and Openhome devices";
homepage = "https://github.com/bazwilliams/openhomedevice";
changelog = "https://github.com/bazwilliams/openhomedevice/releases/tag/${version}";
license = with lib.licenses; [ mit ];
maintainers = with lib.maintainers; [ fab ];
};
}