nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 49 lines 953 B view raw
1{ lib 2, buildPythonPackage 3, pythonOlder 4, fetchFromGitHub 5, poetry-core 6, aiohttp 7}: 8 9buildPythonPackage rec { 10 pname = "aiomusiccast"; 11 version = "0.14.3"; 12 13 format = "pyproject"; 14 disabled = pythonOlder "3.8"; 15 16 src = fetchFromGitHub { 17 owner = "vigonotion"; 18 repo = "aiomusiccast"; 19 rev = version; 20 hash = "sha256-ELdNxeU9dajWr4VeOyuvNrSi7B+ImVJM/BlZsw3tcKE="; 21 }; 22 23 postPatch = '' 24 substituteInPlace pyproject.toml \ 25 --replace '"0.0.0"' '"${version}"' 26 ''; 27 28 nativeBuildInputs = [ 29 poetry-core 30 ]; 31 32 propagatedBuildInputs = [ 33 aiohttp 34 ]; 35 36 # upstream has no tests 37 doCheck = false; 38 39 pythonImportsCheck = [ 40 "aiomusiccast" 41 ]; 42 43 meta = with lib; { 44 description = "Companion library for musiccast devices intended for the Home Assistant integration"; 45 homepage = "https://github.com/vigonotion/aiomusiccast"; 46 license = licenses.mit; 47 maintainers = with maintainers; [ dotlambda ]; 48 }; 49}