python3Packages.travispy: init at 0.3.5

This commit is contained in:
Jamie Magee
2025-08-27 22:59:55 -07:00
parent 3810fed9b5
commit 8609954463
2 changed files with 58 additions and 0 deletions

View File

@@ -0,0 +1,56 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
requests,
pytestCheckHook,
pytest-rerunfailures,
}:
buildPythonPackage rec {
pname = "travispy";
version = "0.3.5";
pyproject = true;
src = fetchFromGitHub {
owner = "menegazzo";
repo = "travispy";
tag = "v${version}";
hash = "sha256-jYuRaKtoWaWq6QWinXnuBfqanTCMibouwwWHfcmioGo=";
};
postPatch = ''
# Fix deprecated pytest configuration
substituteInPlace setup.cfg \
--replace-fail "[pytest]" "[tool:pytest]"
'';
build-system = [ setuptools ];
dependencies = [ requests ];
nativeCheckInputs = [
pytestCheckHook
pytest-rerunfailures
];
tests = [
"travispy/_tests/"
];
# Skip tests that require network access
disabledTests = [
"test_not_authenticated"
];
pythonImportsCheck = [ "travispy" ];
meta = {
description = "Python API for Travis CI";
homepage = "https://github.com/menegazzo/travispy";
changelog = "https://github.com/menegazzo/travispy/releases/tag/v${version}";
license = lib.licenses.gpl3Only;
maintainers = [ lib.maintainers.jamiemagee ];
};
}

View File

@@ -18445,6 +18445,8 @@ self: super: with self; {
transmission-rpc = callPackage ../development/python-modules/transmission-rpc { };
travispy = callPackage ../development/python-modules/travispy { };
trectools = callPackage ../development/python-modules/trectools { };
tree-sitter = callPackage ../development/python-modules/tree-sitter { };