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