2018-10-17 00:36:07 +02:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
2019-03-23 00:00:04 +01:00
|
|
|
, fetchPypi
|
|
|
|
, isPy3k
|
2019-01-15 00:24:12 +01:00
|
|
|
, nose
|
2018-10-17 00:36:07 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "munkres";
|
2019-03-23 00:00:04 +01:00
|
|
|
version = "1.1.2";
|
2018-10-17 00:36:07 +02:00
|
|
|
|
2019-03-23 00:00:04 +01:00
|
|
|
disabled = !isPy3k;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "81e9ced40c3d0ffc48be4b6da5cfdfaa49041faaaba8075b159974ec47926aea";
|
2018-10-17 00:36:07 +02:00
|
|
|
};
|
|
|
|
|
2019-01-15 00:24:12 +01:00
|
|
|
checkInputs = [ nose ];
|
|
|
|
|
|
|
|
checkPhase = "nosetests";
|
2018-10-17 00:36:07 +02: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 ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|