nixpkgs/pkgs/development/python-modules/pmsensor/default.nix
Ihar Hrachyshka 567e8dfd8e
treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

34 lines
691 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pyserial,
}:
buildPythonPackage rec {
pname = "pmsensor";
version = "0.4";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "7fc03aafb791ca70d847c9ab97cf181bc7d8f7345efb4b0c3f66c07b9c7dee69";
};
propagatedBuildInputs = [ pyserial ];
# no tests implemented
doCheck = false;
pythonImportsCheck = [
"pmsensor.co2sensor"
"pmsensor.serial_pm"
];
meta = {
description = "Library to read data from environment sensors";
homepage = "https://github.com/open-homeautomation/pmsensor";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dotlambda ];
};
}