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