at 25.11-pre 830 B view raw
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 postPatch = '' 22 substituteInPlace pyproject.toml \ 23 --replace-fail 'repository =' 'Repository =' 24 ''; 25 26 nativeBuildInputs = [ poetry-core ]; 27 28 nativeCheckInputs = [ unittestCheckHook ]; 29 30 pythonImportsCheck = [ "pyrad" ]; 31 32 meta = { 33 description = "Python RADIUS Implementation"; 34 homepage = "https://github.com/pyradius/pyrad"; 35 license = lib.licenses.bsd3; 36 maintainers = with lib.maintainers; [ drawbu ]; 37 }; 38}