about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/pyrad/default.nix
blob: 31cbf77d94e0f4c40687be3827d9bfa200b34406 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ buildPythonPackage, fetchFromGitHub, lib, netaddr, six, nose }:

buildPythonPackage rec {
  pname = "pyrad";
  version = "2.3";

  src = fetchFromGitHub {
    owner = "pyradius";
    repo = pname;
    rev = version;
    sha256 = "0hy7999av47s8100afbhxfjb8phbmrqcv530xlvskndby4a8w94k";
  };

  propagatedBuildInputs = [ netaddr six ];
  checkInputs = [ nose ];

  checkPhase = ''
    nosetests -e testBind
  '';

  meta = with lib; {
    description = "Python RADIUS Implementation";
    homepage = "https://bitbucket.org/zzzeek/sqlsoup";
    license = licenses.mit;
    maintainers = [ maintainers.globin ];
  };
}