mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-19 14:20:19 +00:00
python3Packages.travispy: init at 0.3.5
This commit is contained in:
56
pkgs/development/python-modules/travispy/default.nix
Normal file
56
pkgs/development/python-modules/travispy/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
||||
@@ -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 { };
|
||||
|
||||
Reference in New Issue
Block a user