a0cb138ada
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
42 lines
795 B
Nix
42 lines
795 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, setuptools
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
let
|
|
pname = "rpi-bad-power";
|
|
version = "0.1.0";
|
|
in
|
|
buildPythonPackage {
|
|
inherit pname version;
|
|
format = "pyproject";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "shenxn";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256:1yvfz28blq4fdnn614n985vbs5hcw1gm3i9am53k410sfs7ilvkk";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"rpi_bad_power"
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python library to detect bad power supply on Raspberry Pi";
|
|
homepage = "https://github.com/shenxn/rpi-bad-power";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ hexa ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|