about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/click-threading/default.nix
blob: 529ee08e4f8e2323d661dccc78c41461d128552a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{ lib
, buildPythonPackage
, fetchPypi
, pytest
, click
, isPy3k
, futures ? null
}:

buildPythonPackage rec {
  pname = "click-threading";
  version = "0.5.0";

  src = fetchPypi {
    inherit pname version;
    sha256 = "sha256-rc/mI8AqWVwQfDFAcvZ6Inj+TrQLcsDRoskDzHivNDk=";
  };

  checkInputs = [ pytest ];
  propagatedBuildInputs = [ click ] ++ lib.optional (!isPy3k) futures;

  checkPhase = ''
    py.test
  '';

  # Tests are broken on 3.x
  doCheck = !isPy3k;

  meta = {
    homepage = "https://github.com/click-contrib/click-threading/";
    description = "Multithreaded Click apps made easy";
    license = lib.licenses.mit;
  };
}