1{ lib 2, buildPythonPackage 3, fetchPypi 4, fetchpatch 5, isPy3k 6, pytestCheckHook 7}: 8 9buildPythonPackage rec { 10 pname = "munkres"; 11 version = "1.1.4"; 12 13 disabled = !isPy3k; 14 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "fc44bf3c3979dada4b6b633ddeeb8ffbe8388ee9409e4d4e8310c2da1792db03"; 18 }; 19 20 patches = [ 21 # Fixes test on 32-bit systems. 22 # Remove if https://github.com/bmc/munkres/pull/41 is merged. 23 (fetchpatch { 24 url = "https://github.com/bmc/munkres/commit/380a0d593a0569a761c4a035edaa4414c3b4b31d.patch"; 25 sha256 = "0ga63k68r2080blzi04ajdl1m6xd87mmlqa8hxn9hyixrg1682vb"; 26 }) 27 ]; 28 29 nativeCheckInputs = [ pytestCheckHook ]; 30 31 meta = with lib; { 32 homepage = "http://bmc.github.com/munkres/"; 33 description = "Munkres algorithm for the Assignment Problem"; 34 license = licenses.bsd3; 35 maintainers = with maintainers; [ domenkozar ]; 36 }; 37 38}