Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
56 lines
1.2 KiB
Nix
56 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
fetchpatch,
|
|
pyopenssl,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aiosasl";
|
|
version = "0.5.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "horazont";
|
|
repo = "aiosasl";
|
|
tag = "v${version}";
|
|
hash = "sha256-JIuNPb/l4QURMQc905H2iNGCfMz+zM/QJhDQOR8LPdc=";
|
|
};
|
|
|
|
patches = [
|
|
(fetchpatch {
|
|
name = "python311-compat.patch";
|
|
url = "https://github.com/horazont/aiosasl/commit/44c48d36b416bd635d970dba2607a31b2167ea1b.patch";
|
|
hash = "sha256-u6PJKV54dU2MA9hXa/9hJ3eLVds1DuLHGbt8y/OakWs=";
|
|
})
|
|
];
|
|
|
|
postPatch = ''
|
|
# https://github.com/horazont/aiosasl/issues/28
|
|
substituteInPlace tests/test_aiosasl.py \
|
|
--replace-fail "assertRaisesRegexp" "assertRaisesRegex"
|
|
'';
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
nativeCheckInputs = [
|
|
pyopenssl
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "aiosasl" ];
|
|
|
|
meta = {
|
|
description = "Asyncio SASL library";
|
|
homepage = "https://github.com/horazont/aiosasl";
|
|
license = lib.licenses.lgpl3Plus;
|
|
maintainers = with lib.maintainers; [ dotlambda ];
|
|
};
|
|
}
|