nixpkgs/pkgs/development/python-modules/lc7001/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
767 B
Nix
Raw Normal View History

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