nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 58 lines 1.1 kB view raw
1{ lib 2, aiohttp 3, buildPythonPackage 4, fetchFromGitHub 5, pytestCheckHook 6, pythonOlder 7, pythonAtLeast 8, poetry-core 9, pytest-aiohttp 10, pytest-asyncio 11}: 12 13buildPythonPackage rec { 14 pname = "hyperion-py"; 15 version = "0.7.5"; 16 disabled = pythonOlder "3.8" || pythonAtLeast "3.10"; 17 format = "pyproject"; 18 19 src = fetchFromGitHub { 20 owner = "dermotduffy"; 21 repo = pname; 22 rev = "v${version}"; 23 sha256 = "sha256-arcnpCQsRuiWCrAz/t4TCjTe8DRDtRuzYp8k7nnjGDk="; 24 }; 25 26 nativeBuildInputs = [ 27 poetry-core 28 ]; 29 30 propagatedBuildInputs = [ 31 aiohttp 32 ]; 33 34 checkInputs = [ 35 pytest-asyncio 36 pytest-aiohttp 37 pytestCheckHook 38 ]; 39 40 pytestFlagsArray = [ 41 # pytest-asyncio 0.17.0 compat 42 "--asyncio-mode=auto" 43 ]; 44 45 postPatch = '' 46 substituteInPlace pyproject.toml \ 47 --replace " --timeout=9 --cov=hyperion" "" 48 ''; 49 50 pythonImportsCheck = [ "hyperion" ]; 51 52 meta = with lib; { 53 description = "Python package for Hyperion Ambient Lighting"; 54 homepage = "https://github.com/dermotduffy/hyperion-py"; 55 license = licenses.mit; 56 maintainers = with maintainers; [ fab ]; 57 }; 58}