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