mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-09 14:33:22 +00:00
7ad9f6bebd
Diff: https://github.com/Danielhiversen/flux_led/compare/refs/tags/0.28.35...0.28.36 Changelog: https://github.com/Danielhiversen/flux_led/releases/tag/0.28.36
55 lines
1.1 KiB
Nix
55 lines
1.1 KiB
Nix
{ lib
|
|
, async-timeout
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, webcolors
|
|
, pythonOlder
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "flux-led";
|
|
version = "0.28.36";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Danielhiversen";
|
|
repo = "flux_led";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-UoWeVLsfc8rK3U7zaF8bKXk/XdrgT6F3biNe/UFq/rE=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|