2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
setuptools-scm,
|
|
|
|
pytest,
|
|
|
|
testrail-api,
|
2023-03-15 16:39:30 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-pytestrail";
|
|
|
|
version = "0.10.5";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2023-03-15 16:39:30 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tolstislon";
|
|
|
|
repo = "pytest-pytestrail";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "sha256-y34aRxQ8mu6b6GBRMFVzn1shMVc7TumdjRS3daMEZJM=";
|
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
2023-03-15 16:39:30 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
buildInputs = [ pytest ];
|
2023-03-15 16:39:30 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [ testrail-api ];
|
2023-03-15 16:39:30 +00:00
|
|
|
|
|
|
|
# all tests require network accesss
|
|
|
|
doCheck = false;
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "pytest_pytestrail" ];
|
2023-03-15 16:39:30 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Pytest plugin for interaction with TestRail";
|
|
|
|
homepage = "https://github.com/tolstislon/pytest-pytestrail";
|
|
|
|
changelog = "https://github.com/tolstislon/pytest-pytestrail/releases/tag/${version}";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ aanderse ];
|
|
|
|
};
|
|
|
|
}
|