Files
nixpkgs/pkgs/development/python-modules/lc7001/default.nix
T
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

42 lines
760 B
Nix

{
lib,
buildPythonPackage,
cryptography,
fetchPypi,
pythonOlder,
poetry-core,
setuptools,
}:
buildPythonPackage rec {
pname = "lc7001";
version = "1.0.5";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-I4I3vwW1kJsgLFPMGpe9hkD3iEeC3AqI4pCi6SCWPx4=";
};
nativeBuildInputs = [
poetry-core
setuptools
];
propagatedBuildInputs = [ cryptography ];
# Project has no tests
doCheck = false;
pythonImportsCheck = [ "lc7001" ];
meta = {
description = "Python module for interacting with Legrand LC7001";
homepage = "https://github.com/rtyle/lc7001";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}