1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools-scm, 6 pytest, 7 testrail-api, 8}: 9 10buildPythonPackage rec { 11 pname = "pytest-pytestrail"; 12 version = "0.10.5"; 13 format = "setuptools"; 14 15 src = fetchFromGitHub { 16 owner = "tolstislon"; 17 repo = "pytest-pytestrail"; 18 rev = version; 19 sha256 = "sha256-y34aRxQ8mu6b6GBRMFVzn1shMVc7TumdjRS3daMEZJM="; 20 }; 21 22 nativeBuildInputs = [ setuptools-scm ]; 23 24 buildInputs = [ pytest ]; 25 26 propagatedBuildInputs = [ testrail-api ]; 27 28 # all tests require network access 29 doCheck = false; 30 31 pythonImportsCheck = [ "pytest_pytestrail" ]; 32 33 meta = with lib; { 34 description = "Pytest plugin for interaction with TestRail"; 35 homepage = "https://github.com/tolstislon/pytest-pytestrail"; 36 changelog = "https://github.com/tolstislon/pytest-pytestrail/releases/tag/${version}"; 37 license = with licenses; [ mit ]; 38 maintainers = with maintainers; [ aanderse ]; 39 }; 40}