Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / aiosasl / default.nix
blobd904802ff61a203a0a5c721d9b3190b3007e2924
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , fetchpatch
5 , pyopenssl
6 , pytestCheckHook
7 }:
9 buildPythonPackage rec {
10   pname = "aiosasl";
11   version = "0.5.0";
13   format = "setuptools";
15   src = fetchFromGitHub {
16     owner = "horazont";
17     repo = "aiosasl";
18     rev = "refs/tags/v${version}";
19     hash = "sha256-JIuNPb/l4QURMQc905H2iNGCfMz+zM/QJhDQOR8LPdc=";
20   };
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   ];
30   nativeCheckInputs = [
31     pyopenssl
32     pytestCheckHook
33   ];
35   pythonImportsCheck = [ "aiosasl" ];
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   };