1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pykerberos,
6 pytestCheckHook,
7 six,
8}:
9
10buildPythonPackage rec {
11 pname = "pure-sasl";
12 version = "0.6.2";
13 format = "setuptools";
14
15 src = fetchFromGitHub {
16 owner = "thobbs";
17 repo = "pure-sasl";
18 tag = version;
19 hash = "sha256-AHoZ3QZLr0JLE8+a2zkB06v2wRknxhgm/tcEPXaJX/U=";
20 };
21
22 postPatch = ''
23 substituteInPlace tests/unit/test_mechanism.py \
24 --replace 'from mock import patch' 'from unittest.mock import patch'
25 '';
26
27 pythonImportsCheck = [ "puresasl" ];
28
29 nativeCheckInputs = [
30 pykerberos
31 pytestCheckHook
32 six
33 ];
34
35 meta = {
36 description = "Reasonably high-level SASL client written in pure Python";
37 homepage = "http://github.com/thobbs/pure-sasl";
38 changelog = "https://github.com/thobbs/pure-sasl/blob/0.6.2/CHANGES.rst";
39 license = lib.licenses.mit;
40 maintainers = with lib.maintainers; [ jherland ];
41 };
42}