python.pkgs.simanneal: enable tests
This commit is contained in:
parent
de1480e079
commit
dd99592952
@ -1,19 +1,24 @@
|
|||||||
{ lib, fetchPypi, buildPythonPackage }:
|
{ stdenv, fetchFromGitHub, buildPythonPackage, pytest }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "simanneal";
|
pname = "simanneal";
|
||||||
version = "0.4.1";
|
version = "0.4.1";
|
||||||
name = "${pname}-${version}";
|
name = "${pname}-${version}";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchFromGitHub {
|
||||||
inherit pname version;
|
owner = "perrygeo";
|
||||||
sha256 = "1ib1hv2adq6x25z13nb4s1asci6dqarpyhpdq144y2rqqff2m01x";
|
repo = "simanneal";
|
||||||
|
rev = version;
|
||||||
|
sha256 = "12499wvf7ii7cy8z2f1d472p7q9napg1lj0h9xx8l1mbr1hjlp3q";
|
||||||
};
|
};
|
||||||
|
|
||||||
meta = {
|
checkInputs = [ pytest ];
|
||||||
|
checkPhase = "pytest tests";
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
description = "A python implementation of the simulated annealing optimization technique";
|
description = "A python implementation of the simulated annealing optimization technique";
|
||||||
homepage = https://github.com/perrygeo/simanneal;
|
homepage = https://github.com/perrygeo/simanneal;
|
||||||
license = lib.licenses.isc;
|
license = licenses.isc;
|
||||||
maintainers = with lib.maintainers; [ veprbl ];
|
maintainers = with maintainers; [ veprbl ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user