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