depot/third_party/nixpkgs/pkgs/development/python-modules/pyrad/default.nix
Default email 58849dfc4f Project import generated by Copybara.
GitOrigin-RevId: 21c937f8cb1e6adcfeb36dfd6c90d9d9bfab1d28
2021-08-27 16:25:00 +02:00

29 lines
654 B
Nix

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