git.iko.soy/typeable/nixpkgs
on master help sign in
python.pkgs.simanneal: enable tests
dd99592Joerg Thalheim
pkgs/development/python-modules/simanneal/default.nix+12−7
@@ -1,19 +1,24 @@
1−{ lib, fetchPypi, buildPythonPackage }:
1+{ stdenv, fetchFromGitHub, buildPythonPackage, pytest }:
2
2
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}";
7
7
8− src = fetchPypi {
8+ src = fetchFromGitHub {
9+ owner = "perrygeo";
10+ repo = "simanneal";
9− inherit pname version;
11+ rev = version;
10− sha256 = "1ib1hv2adq6x25z13nb4s1asci6dqarpyhpdq144y2rqqff2m01x";
12+ sha256 = "12499wvf7ii7cy8z2f1d472p7q9napg1lj0h9xx8l1mbr1hjlp3q";
11 };
13 };
12
14
13− meta = {
15+ checkInputs = [ pytest ];
16+ checkPhase = "pytest tests";
17+
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 ];
18 };
23 };
19}
24}