Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104{ lib, buildPythonPackage, fetchFromGitHub,
# build-system setuptools, setuptools-scm,
# dependencies click, entrypoints, funcy, pydantic, pydantic-settings, rich, ruamel-yaml, scmrepo, semver, tabulate, typer,
# tests cacert, freezegun, gitSetupHook, pytest-cov-stub, pytest-mock, pytest-test-utils, pytestCheckHook, writableTmpDirAsHomeHook,}:
buildPythonPackage (finalAttrs: { pname = "gto"; version = "1.10.1"; pyproject = true;
src = fetchFromGitHub { owner = "iterative"; repo = "gto"; tag = finalAttrs.version; hash = "sha256-pzXU7H4ysu0IBHEtSduA7ogNqmRVWagTI5E4P0z/Wio="; };
build-system = [ setuptools setuptools-scm ];
dependencies = [ click entrypoints funcy pydantic pydantic-settings rich ruamel-yaml scmrepo semver tabulate typer ];
nativeCheckInputs = [ freezegun gitSetupHook pytest-cov-stub pytest-mock pytest-test-utils pytestCheckHook writableTmpDirAsHomeHook ];
preCheck = '' # _pygit2.GitError: OpenSSL error: failed to load certificates: error:00000000:lib(0)::reason(0) export SSL_CERT_FILE=${cacert}/etc/ssl/certs/ca-bundle.crt '';
disabledTests = [ # Tests want to do it with a remote repo "remote_repo" "remote_git_repo" "test_action_doesnt_push_even_if_repo_has_remotes_set" "test_api" # ValueError: stderr not separately captured "test_register" "test_assign" "test_stderr_gto_exception" "test_stderr_exception" ];
pythonImportsCheck = [ "gto" ];
meta = { description = "Module for Git Tag Operations"; homepage = "https://github.com/iterative/gto"; changelog = "https://github.com/iterative/gto/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ fab ]; mainProgram = "gto"; };})