git.iko.soy/typeable/nixpkgs
on master help sign in
python.pkgs.simanneal: enable tests
commitdd9959295205489016e1877f96a0f0c83eef5743 authorJoerg Thalheim <joerg@thalheim.io> dateSun 24 Sep 2017, 15:57 (9 years ago) parentde1480e
1 file changed+12−7
pkgs/development/python-modules/simanneal/default.nix+12−7
pkgs/development/python-modules/simanneal/default.nix+12−7
@@ -1,19 +1,24 @@
1−{ lib, fetchPypi, buildPythonPackage }:
1+{ stdenv, fetchFromGitHub, buildPythonPackage, pytest }:
22
33buildPythonPackage rec {
44 pname = "simanneal";
55 version = "0.4.1";
66 name = "${pname}-${version}";
77
8− src = fetchPypi {
9− inherit pname version;
10− sha256 = "1ib1hv2adq6x25z13nb4s1asci6dqarpyhpdq144y2rqqff2m01x";
8+ src = fetchFromGitHub {
9+ owner = "perrygeo";
10+ repo = "simanneal";
11+ rev = version;
12+ sha256 = "12499wvf7ii7cy8z2f1d472p7q9napg1lj0h9xx8l1mbr1hjlp3q";
1113 };
1214
13− meta = {
15+ checkInputs = [ pytest ];
16+ checkPhase = "pytest tests";
17+
18+ meta = with stdenv.lib; {
1419 description = "A python implementation of the simulated annealing optimization technique";
1520 homepage = https://github.com/perrygeo/simanneal;
16− license = lib.licenses.isc;
17− maintainers = with lib.maintainers; [ veprbl ];
21+ license = licenses.isc;
22+ maintainers = with maintainers; [ veprbl ];
1823 };
1924}