Merge pull request #277472 from newAM/monitorcontrol

python3Packages.monitorcontrol: init at 3.1.0
This commit is contained in:
OTABI Tomoya 2023-12-30 17:59:46 +09:00 committed by GitHub
commit 98a0c372a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 52 additions and 0 deletions

View File

@ -0,0 +1,50 @@
{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, poetry-core
, pyudev
, pytestCheckHook
, voluptuous
}:
buildPythonPackage rec {
pname = "monitorcontrol";
version = "3.1.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "newAM";
repo = "monitorcontrol";
rev = "refs/tags/${version}";
hash = "sha256-fu0Lm7Tcw7TCCBDXTTY20JBAM7oeesyeHQFFILeZxX0=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
pyudev
];
nativeCheckInputs = [
pytestCheckHook
voluptuous
];
pythonImportsCheck = [
pname
];
meta = with lib; {
description = "Python monitor controls using DDC-CI";
homepage = "https://github.com/newAM/monitorcontrol";
changelog = "https://github.com/newAM/monitorcontrol/blob/v${version}/CHANGELOG.md";
license = licenses.mit;
platforms = platforms.linux;
maintainers = with maintainers; [ newam ];
};
}

View File

@ -7176,6 +7176,8 @@ self: super: with self; {
mongoquery = callPackage ../development/python-modules/mongoquery { };
monitorcontrol = callPackage ../development/python-modules/monitorcontrol { };
monkeyhex = callPackage ../development/python-modules/monkeyhex { };
monosat = pkgs.monosat.python {