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