02dab4ab5c
Long term we should move everything over to `pyproject = true`, but in the mean time we can work towards deprecating the implicit `format` paremeter. cc https://github.com/NixOS/nixpkgs/issues/253154 cc @mweinelt @figsoda
35 lines
693 B
Nix
35 lines
693 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 = with lib; {
|
|
description = "Library to read data from environment sensors";
|
|
homepage = "https://github.com/open-homeautomation/pmsensor";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
};
|
|
}
|