depot/third_party/nixpkgs/pkgs/development/python-modules/aiorussound/default.nix
Default email 7e47f3658e Project import generated by Copybara.
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
2024-09-26 11:04:55 +00:00

53 lines
1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
# build-system
poetry-core,
# dependencies
mashumaro,
orjson,
# tests
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "aiorussound";
version = "3.1.5";
pyproject = true;
# requires newer f-strings introduced in 3.12
disabled = pythonOlder "3.12";
src = fetchFromGitHub {
owner = "noahhusby";
repo = "aiorussound";
rev = "refs/tags/${version}";
hash = "sha256-c9elemUdvX8Q8/Sr4DSXEx9SdRoLKibQFbY+WSDg/yM=";
};
build-system = [ poetry-core ];
dependencies = [
mashumaro
orjson
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [ "aiorussound" ];
meta = with lib; {
changelog = "https://github.com/noahhusby/aiorussound/releases/tag/${version}";
description = "Async python package for interfacing with Russound RIO hardware";
homepage = "https://github.com/noahhusby/aiorussound";
license = licenses.mit;
maintainers = with maintainers; [ hexa ];
};
}