2018-10-16 23:36:07 +01:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
2019-01-14 23:24:12 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, nose
|
2018-10-16 23:36:07 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "munkres";
|
2019-01-14 23:24:12 +00:00
|
|
|
version = "1.0.12";
|
2018-10-16 23:36:07 +01:00
|
|
|
|
2019-01-14 23:24:12 +00:00
|
|
|
# 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";
|
2018-10-16 23:36:07 +01:00
|
|
|
};
|
|
|
|
|
2019-01-14 23:24:12 +00:00
|
|
|
checkInputs = [ nose ];
|
|
|
|
|
|
|
|
checkPhase = "nosetests";
|
2018-10-16 23:36:07 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://bmc.github.com/munkres/;
|
|
|
|
description = "Munkres algorithm for the Assignment Problem";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ domenkozar ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|