nixpkgs/pkgs/development/python-modules/flux-led/default.nix
Nick Cao 89c98d3d87
Merge pull request #212168 from fabaff/flux-led-bump
python310Packages.flux-led: 0.28.34 -> 0.28.35
2023-01-23 09:04:19 +08:00

55 lines
1.1 KiB
Nix

{ lib
, async-timeout
, buildPythonPackage
, fetchFromGitHub
, webcolors
, pythonOlder
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "flux-led";
version = "0.28.35";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "Danielhiversen";
repo = "flux_led";
rev = "refs/tags/${version}";
hash = "sha256-+MbcI/gcoQOpfL77AyA0rZBP5OgP87gSDt4e5pjriqY=";
};
propagatedBuildInputs = [
async-timeout
webcolors
];
nativeCheckInputs = [
pytestCheckHook
];
postPatch = ''
substituteInPlace setup.py \
--replace '"pytest-runner>=5.2",' ""
'';
pytestFlagsArray = [
"tests.py"
];
pythonImportsCheck = [
"flux_led"
];
meta = with lib; {
description = "Python library to communicate with the flux_led smart bulbs";
homepage = "https://github.com/Danielhiversen/flux_led";
changelog = "https://github.com/Danielhiversen/flux_led/releases/tag/${version}";
license = licenses.lgpl3Plus;
maintainers = with maintainers; [ colemickens ];
platforms = platforms.linux;
};
}