1{ stdenv, fetchFromGitHub, buildPythonPackage, pytest }: 2 3buildPythonPackage rec { 4 pname = "simanneal"; 5 version = "0.4.1"; 6 name = "${pname}-${version}"; 7 8 src = fetchFromGitHub { 9 owner = "perrygeo"; 10 repo = "simanneal"; 11 rev = version; 12 sha256 = "12499wvf7ii7cy8z2f1d472p7q9napg1lj0h9xx8l1mbr1hjlp3q"; 13 }; 14 15 checkInputs = [ pytest ]; 16 checkPhase = "pytest tests"; 17 18 meta = with stdenv.lib; { 19 description = "A python implementation of the simulated annealing optimization technique"; 20 homepage = https://github.com/perrygeo/simanneal; 21 license = licenses.isc; 22 maintainers = with maintainers; [ veprbl ]; 23 }; 24}