3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/pynanoleaf/default.nix
2021-04-01 13:14:56 +02:00

30 lines
699 B
Nix

{ lib, buildPythonPackage, fetchPypi, isPy3k, requests }:
buildPythonPackage rec {
pname = "pynanoleaf";
version = "0.1.0";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-BiLJgsey7kIIeN5+CKKnrTB2bSKMNEbeMLwGi2LRLcg=";
};
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 ];
};
}