nixpkgs/pkgs/development/python-modules/pyrad/default.nix

30 lines
654 B
Nix
Raw Normal View History

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
'';
pythonImportsCheck = [ "pyrad" ];
2020-04-13 22:59:37 +01:00
meta = with lib; {
description = "Python RADIUS Implementation";
homepage = "https://bitbucket.org/zzzeek/sqlsoup";
license = licenses.bsd3;
2020-04-13 22:59:37 +01:00
maintainers = [ maintainers.globin ];
};
}