mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-09 14:53:47 +00:00
Diff: https://github.com/jelmer/dulwich/compare/dulwich-1.2.0...dulwich-1.2.1 Changelog: https://github.com/jelmer/dulwich/blob/dulwich-dulwich-1.2.1/NEWS
125 lines
2.4 KiB
Nix
125 lines
2.4 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
cargo,
|
|
fastimport,
|
|
fetchFromGitHub,
|
|
gevent,
|
|
geventhttpclient,
|
|
git,
|
|
glibcLocales,
|
|
gnupg,
|
|
gpgme,
|
|
merge3,
|
|
nix-update-script,
|
|
openssh,
|
|
paramiko,
|
|
pytestCheckHook,
|
|
rich,
|
|
rustPlatform,
|
|
rustc,
|
|
setuptools,
|
|
setuptools-rust,
|
|
urllib3,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "dulwich";
|
|
version = "1.2.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jelmer";
|
|
repo = "dulwich";
|
|
tag = "dulwich-${finalAttrs.version}";
|
|
hash = "sha256-pyBAN1zSYGrOg4tic/SiKROHHUlFMtBSF0OOVNVvkyM=";
|
|
};
|
|
|
|
cargoDeps = rustPlatform.fetchCargoVendor {
|
|
inherit (finalAttrs) pname version src;
|
|
hash = "sha256-U5X/D3iVg2qunji8HQbNeDzvYMoD4oRe5bL6l035lO0=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
rustPlatform.cargoSetupHook
|
|
cargo
|
|
rustc
|
|
];
|
|
|
|
build-system = [
|
|
setuptools
|
|
setuptools-rust
|
|
];
|
|
|
|
dependencies = [
|
|
urllib3
|
|
];
|
|
|
|
optional-dependencies = {
|
|
colordiff = [ rich ];
|
|
fastimport = [ fastimport ];
|
|
https = [ urllib3 ];
|
|
merge = [ merge3 ];
|
|
pgp = [
|
|
gpgme
|
|
gnupg
|
|
];
|
|
paramiko = [ paramiko ];
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
gevent
|
|
geventhttpclient
|
|
git
|
|
glibcLocales
|
|
openssh # for ssh-keygen
|
|
pytestCheckHook
|
|
]
|
|
++ lib.concatAttrValues finalAttrs.passthru.optional-dependencies;
|
|
|
|
enabledTestPaths = [ "tests" ];
|
|
|
|
disabledTests = [
|
|
# Depends on setuid which is not available in sandboxed environments
|
|
"SharedRepositoryTests"
|
|
];
|
|
|
|
preCheck = ''
|
|
export TMPDIR=$(mktemp -d)
|
|
'';
|
|
|
|
disabledTestPaths = [
|
|
# AssertionError: GPGMEError not raised
|
|
"tests/test_signature.py::GPGSignatureVendorTests::test_verify_invalid_signature"
|
|
];
|
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
pythonImportsCheck = [ "dulwich" ];
|
|
|
|
passthru.updateScript = nix-update-script {
|
|
extraArgs = [
|
|
"--version-regex"
|
|
"^dulwich-([1-9][0-9.]+)$"
|
|
];
|
|
};
|
|
|
|
meta = {
|
|
description = "Implementation of the Git file formats and protocols";
|
|
longDescription = ''
|
|
Dulwich is a Python implementation of the Git file formats and protocols, which
|
|
does not depend on Git itself. All functionality is available in pure Python.
|
|
'';
|
|
homepage = "https://www.dulwich.io/";
|
|
changelog = "https://github.com/jelmer/dulwich/blob/dulwich-${finalAttrs.src.tag}/NEWS";
|
|
license = with lib.licenses; [
|
|
asl20
|
|
gpl2Plus
|
|
];
|
|
maintainers = with lib.maintainers; [
|
|
koral
|
|
sarahec
|
|
];
|
|
};
|
|
})
|