mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 14:13:35 +00:00
30 lines
654 B
Nix
30 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 ];
|
|
};
|
|
}
|