depot/third_party/nixpkgs/pkgs/development/python-modules/aioslimproto/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

51 lines
1 KiB
Nix

{
lib,
aiohttp,
async-timeout,
buildPythonPackage,
fetchFromGitHub,
pillow,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "aioslimproto";
version = "3.0.1";
pyproject = true;
disabled = pythonOlder "3.10";
src = fetchFromGitHub {
owner = "home-assistant-libs";
repo = "aioslimproto";
rev = "refs/tags/${version}";
hash = "sha256-K7z34fT0PQ5qcV+66VbhYTUhCjqW/OjPnrygBFKIW1k=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "--cov" ""
'';
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [
aiohttp
async-timeout
pillow
];
# Module has no tests
doCheck = false;
pythonImportsCheck = [ "aioslimproto" ];
meta = with lib; {
description = "Module to control Squeezebox players";
homepage = "https://github.com/home-assistant-libs/aioslimproto";
changelog = "https://github.com/home-assistant-libs/aioslimproto/releases/tag/${version}";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
};
}