1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, setuptools-scm 5, getmac 6, requests 7, pytestCheckHook 8, responses 9}: 10 11buildPythonPackage rec { 12 pname = "vilfo-api-client"; 13 version = "0.3.3"; 14 15 src = fetchFromGitHub { 16 owner = "ManneW"; 17 repo = "vilfo-api-client-python"; 18 rev = "v${version}"; 19 sha256 = "1gy5gpsg99rcm1cc3m30232za00r9i46sp74zpd12p3vzz1wyyqf"; 20 }; 21 22 postPatch = '' 23 substituteInPlace setup.cfg \ 24 --replace "get-mac" "getmac" 25 ''; 26 27 nativeBuildInputs = [ 28 setuptools-scm 29 ]; 30 31 SETUPTOOLS_SCM_PRETEND_VERSION = version; 32 33 propagatedBuildInputs = [ 34 getmac 35 requests 36 ]; 37 38 checkInputs = [ 39 pytestCheckHook 40 responses 41 ]; 42 43 pythonImportsCheck = [ "vilfo" ]; 44 45 meta = with lib; { 46 description = "Simple wrapper client for the Vilfo router API"; 47 homepage = "https://github.com/ManneW/vilfo-api-client-python"; 48 license = licenses.mit; 49 maintainers = with maintainers; [ dotlambda ]; 50 }; 51}