at 22.05-pre 654 B view raw
1{ buildPythonPackage, fetchFromGitHub, lib, netaddr, six, nose }: 2 3buildPythonPackage rec { 4 pname = "pyrad"; 5 version = "2.4"; 6 7 src = fetchFromGitHub { 8 owner = "pyradius"; 9 repo = pname; 10 rev = version; 11 sha256 = "sha256-oqgkE0xG/8cmLeRZdGoHkaHbjtByeJwzBJwEdxH8oNY="; 12 }; 13 14 propagatedBuildInputs = [ netaddr six ]; 15 checkInputs = [ nose ]; 16 17 checkPhase = '' 18 nosetests -e testBind 19 ''; 20 21 pythonImportsCheck = [ "pyrad" ]; 22 23 meta = with lib; { 24 description = "Python RADIUS Implementation"; 25 homepage = "https://bitbucket.org/zzzeek/sqlsoup"; 26 license = licenses.bsd3; 27 maintainers = [ maintainers.globin ]; 28 }; 29}