1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 flit-core, 6 requests, 7 websockets, 8}: 9 10buildPythonPackage rec { 11 pname = "mopidyapi"; 12 version = "1.1.0"; 13 pyproject = true; 14 15 src = fetchPypi { 16 inherit pname version; 17 hash = "sha256-n1BJGHFZvuGSSumEXWIjH/CiHs5w/8skhz7yfR7Jplw="; 18 }; 19 20 postPatch = '' 21 substituteInPlace pyproject.toml \ 22 --replace-fail '"flit"' '"flit_core"' \ 23 --replace-fail "flit.buildapi" "flit_core.buildapi" 24 ''; 25 26 build-system = [ flit-core ]; 27 28 dependencies = [ 29 requests 30 websockets 31 ]; 32 33 pythonImportsCheck = [ "mopidyapi" ]; 34 35 # PyPi does not include tests 36 doCheck = false; 37 38 meta = { 39 description = "Module for interacting with Mopidy via its JSON RPC API"; 40 homepage = "https://github.com/AsbjornOlling/mopidyapi"; 41 license = lib.licenses.gpl3Only; 42 maintainers = with lib.maintainers; [ fab ]; 43 }; 44}