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

35 lines
684 B
Nix

{ lib
, buildPythonPackage
, colorlog
, fetchPypi
, pythonOlder
, pyserial
}:
buildPythonPackage rec {
pname = "pypca";
version = "0.0.13";
disabled = pythonOlder "3.5";
src = fetchPypi {
inherit pname version;
sha256 = "0y0p2rm22x21mykipiv42fjc79b0969qsbhk3cqkrdnqwh5psbdl";
};
propagatedBuildInputs = [
colorlog
pyserial
];
# Project has no tests
doCheck = false;
pythonImportsCheck = [ "pypca" ];
meta = with lib; {
description = "Python library for interacting with the PCA 301 smart plugs";
homepage = "https://github.com/majuss/pypca";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}