depot/third_party/nixpkgs/pkgs/development/python-modules/pyheos/default.nix
Default email 841d9c7fc1 Project import generated by Copybara.
GitOrigin-RevId: 3a8d7958a610cd3fec3a6f424480f91a1b259185
2021-06-29 00:13:55 +01:00

37 lines
762 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytest-asyncio
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "pyheos";
version = "0.7.2";
src = fetchFromGitHub {
owner = "andrewsayre";
repo = "pyheos";
rev = version;
sha256 = "0rgzg7lnqzzqrjp73c1hj1hq8p0j0msyih3yr4wa2rj81s8ihmby";
};
checkInputs = [
pytest-asyncio
pytestCheckHook
];
disabledTests = [
# accesses network
"test_connect_timeout"
];
pythonImportsCheck = [ "pyheos" ];
meta = with lib; {
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 ];
};
}