mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-11-03 11:20:09 +00:00
40 lines
881 B
Nix
40 lines
881 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
fetchpatch,
|
|
isPy3k,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "munkres";
|
|
version = "1.1.4";
|
|
format = "setuptools";
|
|
|
|
disabled = !isPy3k;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-/ES/PDl52tpLa2M93uuP++g4julAnk1OgxDC2heS2wM=";
|
|
};
|
|
|
|
patches = [
|
|
# Fixes test on 32-bit systems.
|
|
# Remove if https://github.com/bmc/munkres/pull/41 is merged.
|
|
(fetchpatch {
|
|
url = "https://github.com/bmc/munkres/commit/380a0d593a0569a761c4a035edaa4414c3b4b31d.patch";
|
|
hash = "sha256-awtkwss9ephsh0hhWutBrZsaaJOKgPjpAgiIjMwcRj0=";
|
|
})
|
|
];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
meta = {
|
|
homepage = "https://software.clapper.org/munkres/";
|
|
description = "Munkres algorithm for the Assignment Problem";
|
|
license = lib.licenses.bsd3;
|
|
maintainers = [ ];
|
|
};
|
|
}
|