My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/rpi-bad-power/default.nix

37 lines
731 B

{ lib
, buildPythonPackage
, fetchFromGitHub
, 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";
};
pythonImportsCheck = [
"rpi_bad_power"
];
checkInputs = [
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;
};
}