summary refs log tree commit diff
path: root/pkgs/development/python-modules/simanneal/default.nix
blob: d059d720f8bdf01bd9d199a074e0b62b89cccdc8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ stdenv, fetchFromGitHub, buildPythonPackage, pytest }:

buildPythonPackage rec {
  pname = "simanneal";
  version = "0.4.1";

  src = fetchFromGitHub {
    owner = "perrygeo";
    repo = "simanneal";
    rev = version;
    sha256 = "12499wvf7ii7cy8z2f1d472p7q9napg1lj0h9xx8l1mbr1hjlp3q";
  };

  checkInputs = [ pytest ];
  checkPhase = "pytest tests";

  meta = with stdenv.lib; {
    description = "A python implementation of the simulated annealing optimization technique";
    homepage = https://github.com/perrygeo/simanneal;
    license = licenses.isc;
    maintainers = with maintainers; [ veprbl ];
  };
}