2020-05-15 21:57:56 +00:00
|
|
|
{ buildPythonPackage, fetchFromGitHub, lib, netaddr, six, nose }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyrad";
|
2021-08-27 14:25:00 +00:00
|
|
|
version = "2.4";
|
2020-05-15 21:57:56 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pyradius";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-08-27 14:25:00 +00:00
|
|
|
sha256 = "sha256-oqgkE0xG/8cmLeRZdGoHkaHbjtByeJwzBJwEdxH8oNY=";
|
2020-05-15 21:57:56 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ netaddr six ];
|
|
|
|
checkInputs = [ nose ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
nosetests -e testBind
|
|
|
|
'';
|
|
|
|
|
2021-08-27 14:25:00 +00:00
|
|
|
pythonImportsCheck = [ "pyrad" ];
|
|
|
|
|
2020-05-15 21:57:56 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Python RADIUS Implementation";
|
|
|
|
homepage = "https://bitbucket.org/zzzeek/sqlsoup";
|
2021-08-27 14:25:00 +00:00
|
|
|
license = licenses.bsd3;
|
2020-05-15 21:57:56 +00:00
|
|
|
maintainers = [ maintainers.globin ];
|
|
|
|
};
|
|
|
|
}
|