python3Packages.rpi-bad-power: init at 0.1.0
This commit is contained in:
parent
6cb5b31dc4
commit
6054fb82d5
37
pkgs/development/python-modules/rpi-bad-power/default.nix
Normal file
37
pkgs/development/python-modules/rpi-bad-power/default.nix
Normal file
|
@ -0,0 +1,37 @@
|
|||
{ 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;
|
||||
};
|
||||
}
|
|
@ -8639,6 +8639,8 @@ in {
|
|||
|
||||
rpdb = callPackage ../development/python-modules/rpdb { };
|
||||
|
||||
rpi-bad-power = callPackage ../development/python-modules/rpi-bad-power { };
|
||||
|
||||
rply = callPackage ../development/python-modules/rply { };
|
||||
|
||||
rpm = toPythonModule (pkgs.rpm.override {
|
||||
|
|
Loading…
Reference in a new issue