depot/third_party/nixpkgs/pkgs/development/python-modules/pyoppleio/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

38 lines
731 B
Nix

{
lib,
buildPythonPackage,
crc16,
fetchPypi,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "pyoppleio";
version = "1.0.7";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-S1w3pPqhX903kkXUq9ALz0+zRvNGOimLughRRVKjV8E=";
};
build-system = [ setuptools ];
dependencies = [ crc16 ];
# Module has no tests
doCheck = false;
pythonImportsCheck = [ "pyoppleio" ];
meta = with lib; {
description = "Library for interacting with OPPLE lights";
homepage = "https://github.com/jedmeng/python-oppleio";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
mainProgram = "oppleio";
};
}