depot/third_party/nixpkgs/pkgs/development/python-modules/pynanoleaf/default.nix
Default email 75ca762b89 Project import generated by Copybara.
GitOrigin-RevId: 29b0d4d0b600f8f5dd0b86e3362a33d4181938f9
2021-03-09 11:18:52 +08:00

29 lines
712 B
Nix

{ lib, buildPythonPackage, fetchPypi, isPy3k, requests }:
buildPythonPackage rec {
pname = "pynanoleaf";
version = "0.0.7";
src = fetchPypi {
inherit pname version;
sha256 = "7d212f35eac9d94248858ec63ca63545ea7fce1cdda11ae5878f4d4d74f055d0";
};
disabled = !isPy3k;
propagatedBuildInputs = [ requests ];
# pynanoleaf does not contain tests
doCheck = false;
pythonImportsCheck = [
"pynanoleaf"
];
meta = with lib; {
homepage = "https://github.com/Oro/pynanoleaf";
description = "A Python3 wrapper for the Nanoleaf API, capable of controlling both Nanoleaf Aurora and Nanoleaf Canvas";
license = licenses.mit;
maintainers = with maintainers; [ oro ];
};
}