aboutsummaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/munkres/default.nix
blob: a3d9e992cb3052df28e510af473b81468b3a3eb6 (plain)
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
28
29
30
{ stdenv
, buildPythonPackage
, fetchFromGitHub
, nose
}:

buildPythonPackage rec {
  pname = "munkres";
  version = "1.0.12";

  # No sdist for 1.0.12, see https://github.com/bmc/munkres/issues/25
  src = fetchFromGitHub {
    owner = "bmc";
    repo = pname;
    rev = "release-${version}";
    sha256 = "0m3rkn0z3ialndxmyg26xn081znna34i5maa1i4nkhy6nf0ixdjm";
  };

  checkInputs = [ nose ];

  checkPhase = "nosetests";

  meta = with stdenv.lib; {
    homepage = http://bmc.github.com/munkres/;
    description = "Munkres algorithm for the Assignment Problem";
    license = licenses.bsd3;
    maintainers = with maintainers; [ domenkozar ];
  };

}