at master 941 B view raw
1{ 2 buildPythonPackage, 3 fetchFromGitHub, 4 lib, 5 nix-update-script, 6 unittestCheckHook, 7 poetry-core, 8}: 9 10buildPythonPackage { 11 pname = "pyrad"; 12 version = "2.4-unstable-2024-07-24"; 13 pyproject = true; 14 15 src = fetchFromGitHub { 16 owner = "pyradius"; 17 repo = "pyrad"; 18 rev = "f42a57cb0e80de42949810057d36df7c4a6b5146"; 19 hash = "sha256-5SPVeBL1oMZ/XXgKch2Hbk6BRU24HlVl4oXZ2agF1h8="; 20 }; 21 22 postPatch = '' 23 substituteInPlace pyproject.toml \ 24 --replace-fail 'repository =' 'Repository =' 25 ''; 26 27 nativeBuildInputs = [ poetry-core ]; 28 29 nativeCheckInputs = [ unittestCheckHook ]; 30 31 pythonImportsCheck = [ "pyrad" ]; 32 33 passthru.updateScript = nix-update-script { 34 extraArgs = [ "--version=branch" ]; 35 }; 36 37 meta = { 38 description = "Python RADIUS Implementation"; 39 homepage = "https://github.com/pyradius/pyrad"; 40 license = lib.licenses.bsd3; 41 maintainers = with lib.maintainers; [ drawbu ]; 42 }; 43}