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

41 lines
836 B
Nix

{
lib,
aiohttp,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
}:
buildPythonPackage rec {
pname = "aiooncue";
version = "0.3.7";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "bdraco";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-TKOpx+twnG9zj7RcwOn53ebT7eyLOFKyxChp9lCdoU8=";
};
propagatedBuildInputs = [ aiohttp ];
# Module doesn't have tests
doCheck = false;
postPatch = ''
substituteInPlace setup.py \
--replace '"pytest-runner",' ""
'';
pythonImportsCheck = [ "aiooncue" ];
meta = with lib; {
description = "Module to interact with the Kohler Oncue API";
homepage = "https://github.com/bdraco/aiooncue";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
};
}