@@ -1,19 +1,24 @@
1−{ lib, fetchPypi, buildPythonPackage }:
1+{ stdenv, fetchFromGitHub, buildPythonPackage, pytest }:
3buildPythonPackage rec {
3buildPythonPackage rec {
4 pname = "simanneal";
4 pname = "simanneal";
5 version = "0.4.1";
5 version = "0.4.1";
6 name = "${pname}-${version}";
6 name = "${pname}-${version}";
8− src = fetchPypi {
8+ src = fetchFromGitHub {
9− inherit pname version;
11+ rev = version;
10− sha256 = "1ib1hv2adq6x25z13nb4s1asci6dqarpyhpdq144y2rqqff2m01x";
12+ sha256 = "12499wvf7ii7cy8z2f1d472p7q9napg1lj0h9xx8l1mbr1hjlp3q";
13− meta = {
15+ checkInputs = [ pytest ];
16+ checkPhase = "pytest tests";
18+ meta = with stdenv.lib; {
14 description = "A python implementation of the simulated annealing optimization technique";
19 description = "A python implementation of the simulated annealing optimization technique";
15 homepage = https://github.com/perrygeo/simanneal;
20 homepage = https://github.com/perrygeo/simanneal;
16− license = lib.licenses.isc;
21+ license = licenses.isc;
17− maintainers = with lib.maintainers; [ veprbl ];
22+ maintainers = with maintainers; [ veprbl ];