2021-02-06 09:01:52 -08:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, certifi
|
|
|
|
, fastimport
|
|
|
|
, fetchPypi
|
|
|
|
, gevent
|
|
|
|
, geventhttpclient
|
|
|
|
, git
|
|
|
|
, glibcLocales
|
|
|
|
, mock
|
|
|
|
, urllib3
|
|
|
|
}:
|
2017-01-13 07:20:20 -08:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-03-27 13:22:39 -07:00
|
|
|
version = "0.20.21";
|
2017-05-27 02:25:35 -07:00
|
|
|
pname = "dulwich";
|
2017-01-13 07:20:20 -08:00
|
|
|
|
2018-04-06 06:53:24 -07:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-03-27 13:22:39 -07:00
|
|
|
sha256 = "sha256-rHZMmpuA+mGv40BNUnDFBgqlf38IexGpU5XTt287cf0=";
|
2017-01-13 07:20:20 -08:00
|
|
|
};
|
|
|
|
|
|
|
|
LC_ALL = "en_US.UTF-8";
|
|
|
|
|
2018-04-06 06:53:24 -07:00
|
|
|
propagatedBuildInputs = [ urllib3 certifi ];
|
|
|
|
|
2017-01-13 07:20:20 -08:00
|
|
|
# Only test dependencies
|
2018-04-06 06:53:24 -07:00
|
|
|
checkInputs = [ git glibcLocales gevent geventhttpclient mock fastimport ];
|
2017-01-13 07:20:20 -08:00
|
|
|
|
|
|
|
doCheck = !stdenv.isDarwin;
|
|
|
|
|
2021-02-06 09:01:52 -08:00
|
|
|
pythonImportsCheck = [ "dulwich" ];
|
|
|
|
|
2021-01-10 23:54:33 -08:00
|
|
|
meta = with lib; {
|
2017-01-13 07:20:20 -08:00
|
|
|
description = "Simple Python implementation of the Git file formats and protocols";
|
2020-12-23 00:33:55 -08: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-06 09:01:52 -08:00
|
|
|
license = with licenses; [ asl20 gpl2Plus ];
|
2017-01-13 07:20:20 -08:00
|
|
|
maintainers = with maintainers; [ koral ];
|
|
|
|
};
|
|
|
|
}
|