mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 18:26:45 +01:00
48a16b3eac
As of version 1.1.0, this munkres package no longer supports Python 2.
31 lines
573 B
Nix
31 lines
573 B
Nix
{ stdenv
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, isPy3k
|
|
, nose
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "munkres";
|
|
version = "1.1.2";
|
|
|
|
disabled = !isPy3k;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "81e9ced40c3d0ffc48be4b6da5cfdfaa49041faaaba8075b159974ec47926aea";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
|
|
}
|