nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at haskell-updates 50 lines 1.1 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 click, 5 fetchFromGitHub, 6 pytest-asyncio, 7 pytestCheckHook, 8}: 9 10buildPythonPackage rec { 11 pname = "pywizlight"; 12 version = "0.6.3"; 13 format = "setuptools"; 14 15 src = fetchFromGitHub { 16 owner = "sbidy"; 17 repo = "pywizlight"; 18 tag = "v${version}"; 19 hash = "sha256-rCoWdqvFLSLNBAHeFJ6f9kZpIg4WyE8VJLpmsYl+gJM="; 20 }; 21 22 propagatedBuildInputs = [ click ]; 23 24 nativeCheckInputs = [ 25 pytest-asyncio 26 pytestCheckHook 27 ]; 28 29 pytestFlags = [ "--asyncio-mode=auto" ]; 30 31 disabledTests = [ 32 # Tests requires network features (e. g., discovery testing) 33 "test_Bulb_Discovery" 34 "test_timeout" 35 "test_timeout_PilotBuilder" 36 "test_error_PilotBuilder_warm_wite" 37 "test_error_PilotBuilder_cold_white_lower" 38 ]; 39 40 pythonImportsCheck = [ "pywizlight" ]; 41 42 meta = { 43 description = "Python connector for WiZ light bulbs"; 44 mainProgram = "wizlight"; 45 homepage = "https://github.com/sbidy/pywizlight"; 46 changelog = "https://github.com/sbidy/pywizlight/releases/tag/${src.tag}"; 47 license = with lib.licenses; [ mit ]; 48 maintainers = with lib.maintainers; [ fab ]; 49 }; 50}