depot/third_party/nixpkgs/pkgs/development/python-modules/pyheos/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

43 lines
936 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
pytest-asyncio,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "pyheos";
version = "0.7.4";
pyproject = true;
src = fetchFromGitHub {
owner = "andrewsayre";
repo = "pyheos";
rev = "refs/tags/${version}";
hash = "sha256-vz81FepXWcCdlY1v7ozp+/l+XpYb91mNmRiLKwjrC4A=";
};
build-system = [ setuptools ];
nativeCheckInputs = [
pytest-asyncio
pytestCheckHook
];
disabledTests = [
# accesses network
"test_connect_timeout"
];
pythonImportsCheck = [ "pyheos" ];
meta = with lib; {
changelog = "https://github.com/andrewsayre/pyheos/releases/tag/${version}";
description = "Async python library for controlling HEOS devices through the HEOS CLI Protocol";
homepage = "https://github.com/andrewsayre/pyheos";
license = licenses.asl20;
maintainers = with maintainers; [ dotlambda ];
};
}