depot/third_party/nixpkgs/pkgs/development/python-modules/zwave-me-ws/default.nix
Default email eaf6957cd3 Project import generated by Copybara.
GitOrigin-RevId: 4bb072f0a8b267613c127684e099a70e1f6ff106
2023-03-27 12:17:25 -07:00

47 lines
937 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pythonOlder
, requests
, websocket-client
}:
buildPythonPackage rec {
pname = "zwave-me-ws";
version = "0.3.6";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "Z-Wave-Me";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-d/Y2rZArBywTQE1vsE/B5bEPb48kcEqhDP/xfxJBzJs=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
requests
websocket-client
];
# Module has no tests
doCheck = false;
pythonImportsCheck = [
"zwave_me_ws"
];
meta = with lib; {
description = "Library to connect to a ZWave-Me instance";
homepage = "https://github.com/Z-Wave-Me/zwave-me-ws";
changelog = "https://github.com/Z-Wave-Me/zwave-me-ws/releases/tag/v${version}";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}