1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, fetchpatch
5, pyopenssl
6, pytestCheckHook
7}:
8
9buildPythonPackage rec {
10 pname = "aiosasl";
11 version = "0.5.0";
12
13 format = "setuptools";
14
15 src = fetchFromGitHub {
16 owner = "horazont";
17 repo = "aiosasl";
18 rev = "refs/tags/v${version}";
19 hash = "sha256-JIuNPb/l4QURMQc905H2iNGCfMz+zM/QJhDQOR8LPdc=";
20 };
21
22 patches = [
23 (fetchpatch {
24 name = "python311-compat.patch";
25 url = "https://github.com/horazont/aiosasl/commit/44c48d36b416bd635d970dba2607a31b2167ea1b.patch";
26 hash = "sha256-u6PJKV54dU2MA9hXa/9hJ3eLVds1DuLHGbt8y/OakWs=";
27 })
28 ];
29
30 nativeCheckInputs = [
31 pyopenssl
32 pytestCheckHook
33 ];
34
35 pythonImportsCheck = [ "aiosasl" ];
36
37 meta = {
38 description = "Asyncio SASL library";
39 homepage = "https://github.com/horazont/aiosasl";
40 license = lib.licenses.lgpl3Plus;
41 maintainers = with lib.maintainers; [ dotlambda ];
42 };
43}