1{ stdenv
2, buildPythonPackage
3, fetchFromGitHub
4, nose
5}:
6
7buildPythonPackage rec {
8 pname = "munkres";
9 version = "1.0.12";
10
11 # No sdist for 1.0.12, see https://github.com/bmc/munkres/issues/25
12 src = fetchFromGitHub {
13 owner = "bmc";
14 repo = pname;
15 rev = "release-${version}";
16 sha256 = "0m3rkn0z3ialndxmyg26xn081znna34i5maa1i4nkhy6nf0ixdjm";
17 };
18
19 checkInputs = [ nose ];
20
21 checkPhase = "nosetests";
22
23 meta = with stdenv.lib; {
24 homepage = http://bmc.github.com/munkres/;
25 description = "Munkres algorithm for the Assignment Problem";
26 license = licenses.bsd3;
27 maintainers = with maintainers; [ domenkozar ];
28 };
29
30}