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