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