nixpkgs/pkgs/development/python-modules/munkres/default.nix
Will Dietz be445a9074 pythonPackages.munkres: 1.0.6 -> 1.0.12 (#53971)
* re-enable tests
* fetch from github, no sdist on pypi
2019-01-15 00:24:12 +01:00

31 lines
654 B
Nix

{ stdenv
, buildPythonPackage
, fetchFromGitHub
, nose
}:
buildPythonPackage rec {
pname = "munkres";
version = "1.0.12";
# No sdist for 1.0.12, see https://github.com/bmc/munkres/issues/25
src = fetchFromGitHub {
owner = "bmc";
repo = pname;
rev = "release-${version}";
sha256 = "0m3rkn0z3ialndxmyg26xn081znna34i5maa1i4nkhy6nf0ixdjm";
};
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 ];
};
}