{ stdenv, buildPythonPackage, fetchPypi, six }:

buildPythonPackage rec {
  pname = "whisper";
  version = "1.1.4";

  src = fetchPypi {
    inherit pname version;
    sha256 = "ee9128873b5f9c97d258d35d0a32ef8e62c9da473fbbd056982df1f36f0b37aa";
  };

  propagatedBuildInputs = [ six ];

  meta = with stdenv.lib; {
    homepage = http://graphite.wikidot.com/;
    description = "Fixed size round-robin style database";
    maintainers = with maintainers; [ rickynils offline basvandijk ];
    license = licenses.asl20;
  };
}

{ stdenv, buildPythonPackage, fetchPypi, mock, six }:

buildPythonPackage rec {
  pname = "whisper";
  version = "1.1.4";

  src = fetchPypi {
    inherit pname version;
    sha256 = "ee9128873b5f9c97d258d35d0a32ef8e62c9da473fbbd056982df1f36f0b37aa";
  };

  propagatedBuildInputs = [ six ];
  checkInputs           = [ mock ];

  meta = with stdenv.lib; {
    homepage = http://graphite.wikidot.com/;
    description = "Fixed size round-robin style database";
    maintainers = with maintainers; [ rickynils offline basvandijk ];
    license = licenses.asl20;
  };
}

Add mock to the list of whisper's test inputs.
Add mock to the list of whisper's test inputs.

This was required as the versiof whisper was upgraded from
1.1.3 to 1.1.4 and mock was added as a test dependency in
that release:
https://github.com/graphite-project/whisper/commit/703dd9d3a60a0f79383c03a541ee66bd50966a01#diff-62849af500c571aa4532da7be8833e73R14
