1{
2 buildPythonPackage,
3 fetchFromGitHub,
4 lib,
5 unittestCheckHook,
6 poetry-core,
7}:
8
9buildPythonPackage rec {
10 pname = "pyrad";
11 version = "2.4-unstable-2024-07-24";
12 pyproject = true;
13
14 src = fetchFromGitHub {
15 owner = "pyradius";
16 repo = pname;
17 rev = "f42a57cb0e80de42949810057d36df7c4a6b5146";
18 hash = "sha256-5SPVeBL1oMZ/XXgKch2Hbk6BRU24HlVl4oXZ2agF1h8=";
19 };
20
21 nativeBuildInputs = [ poetry-core ];
22
23 nativeCheckInputs = [ unittestCheckHook ];
24
25 pythonImportsCheck = [ "pyrad" ];
26
27 meta = {
28 description = "Python RADIUS Implementation";
29 homepage = "https://github.com/pyradius/pyrad";
30 license = lib.licenses.bsd3;
31 maintainers = with lib.maintainers; [ drawbu ];
32 };
33}