1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6 pythonOlder, 7 requests, 8 responses, 9 setuptools, 10 setuptools-scm, 11}: 12 13buildPythonPackage rec { 14 pname = "testrail-api"; 15 version = "1.13.4"; 16 pyproject = true; 17 18 disabled = pythonOlder "3.8"; 19 20 src = fetchFromGitHub { 21 owner = "tolstislon"; 22 repo = "testrail-api"; 23 tag = version; 24 hash = "sha256-0RrNqSuimXXBEkjmnRQiIXUDy6z2y9wKneWqBTi5FHY="; 25 }; 26 27 build-system = [ 28 setuptools 29 setuptools-scm 30 ]; 31 32 dependencies = [ requests ]; 33 34 nativeCheckInputs = [ 35 pytestCheckHook 36 responses 37 ]; 38 39 pythonImportsCheck = [ "testrail_api" ]; 40 41 meta = { 42 description = "Python wrapper of the TestRail API"; 43 homepage = "https://github.com/tolstislon/testrail-api"; 44 changelog = "https://github.com/tolstislon/testrail-api/releases/tag/${src.tag}"; 45 license = with lib.licenses; [ mit ]; 46 maintainers = with lib.maintainers; [ aanderse ]; 47 }; 48}