mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
0215034f25
when they already rely on SRI hashes.
45 lines
765 B
Nix
45 lines
765 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 = with lib; {
|
|
description = "Python module for interacting with Legrand LC7001";
|
|
homepage = "https://github.com/rtyle/lc7001";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|