nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 40 lines 790 B view raw
1{ lib 2, bluepy 3, buildPythonPackage 4, fetchFromGitHub 5, pythonOlder 6}: 7 8buildPythonPackage rec { 9 pname = "pyswitchbot"; 10 version = "0.13.3"; 11 format = "setuptools"; 12 13 disabled = pythonOlder "3.7"; 14 15 src = fetchFromGitHub { 16 owner = "Danielhiversen"; 17 repo = "pySwitchbot"; 18 rev = version; 19 hash = "sha256-Zgpnw4It3yyy9RQqt5SxeJXl1Z3J3Rp9baLfiw5Bgow="; 20 }; 21 22 propagatedBuildInputs = [ 23 bluepy 24 ]; 25 26 # Project has no tests 27 doCheck = false; 28 29 pythonImportsCheck = [ 30 "switchbot" 31 ]; 32 33 meta = with lib; { 34 description = "Python library to control Switchbot IoT devices"; 35 homepage = "https://github.com/Danielhiversen/pySwitchbot"; 36 license = with licenses; [ mit ]; 37 maintainers = with maintainers; [ fab ]; 38 platforms = platforms.linux; 39 }; 40}