nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 42 lines 739 B view raw
1{ lib 2, buildPythonPackage 3, cryptography 4, fetchPypi 5, pythonOlder 6, poetry-core 7}: 8 9buildPythonPackage rec { 10 pname = "lc7001"; 11 version = "1.0.5"; 12 format = "pyproject"; 13 14 disabled = pythonOlder "3.8"; 15 16 src = fetchPypi { 17 inherit pname version; 18 sha256 = "sha256-I4I3vwW1kJsgLFPMGpe9hkD3iEeC3AqI4pCi6SCWPx4="; 19 }; 20 21 nativeBuildInputs = [ 22 poetry-core 23 ]; 24 25 propagatedBuildInputs = [ 26 cryptography 27 ]; 28 29 # Project has no tests 30 doCheck = false; 31 32 pythonImportsCheck = [ 33 "lc7001" 34 ]; 35 36 meta = with lib; { 37 description = "Python module for interacting with Legrand LC7001"; 38 homepage = "https://github.com/rtyle/lc7001"; 39 license = licenses.mit; 40 maintainers = with maintainers; [ fab ]; 41 }; 42}