systemd: add missing patch for Musl
[NixPkgs.git] / pkgs / development / python-modules / munkres / default.nix
blob1ba6a8213954012b30278485f4b90b392c0a75a5
2   lib,
3   buildPythonPackage,
4   fetchPypi,
5   fetchpatch,
6   isPy3k,
7   pytestCheckHook,
8 }:
10 buildPythonPackage rec {
11   pname = "munkres";
12   version = "1.1.4";
13   format = "setuptools";
15   disabled = !isPy3k;
17   src = fetchPypi {
18     inherit pname version;
19     sha256 = "fc44bf3c3979dada4b6b633ddeeb8ffbe8388ee9409e4d4e8310c2da1792db03";
20   };
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   ];
31   nativeCheckInputs = [ pytestCheckHook ];
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   };