2017-09-24 15:57:49 +01:00
|
|
|
{ stdenv, fetchFromGitHub, buildPythonPackage, pytest }:
|
2017-09-23 03:19:20 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "simanneal";
|
|
|
|
version = "0.4.1";
|
|
|
|
|
2017-09-24 15:57:49 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "perrygeo";
|
|
|
|
repo = "simanneal";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "12499wvf7ii7cy8z2f1d472p7q9napg1lj0h9xx8l1mbr1hjlp3q";
|
2017-09-23 03:19:20 +01:00
|
|
|
};
|
|
|
|
|
2017-09-24 15:57:49 +01:00
|
|
|
checkInputs = [ pytest ];
|
|
|
|
checkPhase = "pytest tests";
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2017-09-23 03:19:20 +01:00
|
|
|
description = "A python implementation of the simulated annealing optimization technique";
|
|
|
|
homepage = https://github.com/perrygeo/simanneal;
|
2017-09-24 15:57:49 +01:00
|
|
|
license = licenses.isc;
|
|
|
|
maintainers = with maintainers; [ veprbl ];
|
2017-09-23 03:19:20 +01:00
|
|
|
};
|
|
|
|
}
|