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