2021-02-13 14:23:35 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, certifi
|
|
|
|
, fastimport
|
|
|
|
, fetchPypi
|
|
|
|
, gevent
|
|
|
|
, geventhttpclient
|
|
|
|
, git
|
|
|
|
, glibcLocales
|
2021-05-28 09:39:13 +00:00
|
|
|
, gpgme
|
2021-02-13 14:23:35 +00:00
|
|
|
, mock
|
2021-05-28 09:39:13 +00:00
|
|
|
, pkgs
|
2021-02-13 14:23:35 +00:00
|
|
|
, urllib3
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-12-06 16:07:01 +00:00
|
|
|
version = "0.20.26";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "dulwich";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-12-06 16:07:01 +00:00
|
|
|
sha256 = "sha256-OKpQ+FnI6lMHGgScPx1cxU99xgpBNqGrYxdWp59lgrU=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
LC_ALL = "en_US.UTF-8";
|
|
|
|
|
2021-05-28 09:39:13 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
certifi
|
|
|
|
urllib3
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
fastimport
|
|
|
|
gevent
|
|
|
|
geventhttpclient
|
|
|
|
git
|
|
|
|
glibcLocales
|
|
|
|
gpgme
|
|
|
|
pkgs.gnupg
|
|
|
|
mock
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
doCheck = !stdenv.isDarwin;
|
|
|
|
|
2021-02-13 14:23:35 +00:00
|
|
|
pythonImportsCheck = [ "dulwich" ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Simple Python implementation of the Git file formats and protocols";
|
2021-02-05 17:12:51 +00:00
|
|
|
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/dulwich/dulwich/blob/dulwich-${version}/NEWS";
|
2021-02-13 14:23:35 +00:00
|
|
|
license = with licenses; [ asl20 gpl2Plus ];
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ koral ];
|
|
|
|
};
|
|
|
|
}
|