Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.8 kB · 92 lines
Nix
at flake-libs
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293{ lib, stdenv, buildPythonPackage, fastimport, fetchFromGitHub, gevent, geventhttpclient, git, glibcLocales, gnupg, gpgme, paramiko, pytestCheckHook, pythonOlder, setuptools, setuptools-rust, urllib3,}:
buildPythonPackage rec { pname = "dulwich"; version = "0.22.8"; pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub { owner = "jelmer"; repo = "dulwich"; tag = "dulwich-${version}"; hash = "sha256-T0Tmu5sblTkqiak9U4ltkGbWw8ZE91pTlhPVMRi5Pxk="; };
build-system = [ setuptools setuptools-rust ];
propagatedBuildInputs = [ urllib3 ];
optional-dependencies = { fastimport = [ fastimport ]; https = [ urllib3 ]; pgp = [ gpgme gnupg ]; paramiko = [ paramiko ]; };
nativeCheckInputs = [ gevent geventhttpclient git glibcLocales pytestCheckHook ] ++ lib.flatten (lib.attrValues optional-dependencies);
pytestFlagsArray = [ "tests" ];
disabledTests = [ # AssertionError: 'C:\\\\foo.bar\\\\baz' != 'C:\\foo.bar\\baz' "test_file_win" ];
disabledTestPaths = [ # requires swift config file "tests/contrib/test_swift_smoke.py" ];
doCheck = !stdenv.hostPlatform.isDarwin;
pythonImportsCheck = [ "dulwich" ];
meta = with lib; { 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-${src.tag}/NEWS"; license = with licenses; [ asl20 gpl2Plus ]; maintainers = with maintainers; [ koral ]; };}