Files
nixpkgs/pkgs/development/python-modules/aiolifx/default.nix
T
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

53 lines
947 B
Nix

{ lib
, async-timeout
, click
, fetchPypi
, buildPythonPackage
, pythonOlder
, ifaddr
, inquirerpy
, bitstring
, setuptools
}:
buildPythonPackage rec {
pname = "aiolifx";
version = "1.0.1";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-r42M7aqKKLdGgRaCym44M1nvu0vTGK7ricBp/AsbFRk=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
async-timeout
bitstring
click
ifaddr
inquirerpy
];
# Module has no tests
doCheck = false;
pythonImportsCheck = [
"aiolifx"
];
meta = with lib; {
description = "Module for local communication with LIFX devices over a LAN";
mainProgram = "aiolifx";
homepage = "https://github.com/frawau/aiolifx";
changelog = "https://github.com/frawau/aiolifx/releases/tag/${version}";
license = licenses.mit;
maintainers = with maintainers; [ netixx ];
};
}