depot/third_party/nixpkgs/pkgs/development/python-modules/click-threading/default.nix
Default email 841d9c7fc1 Project import generated by Copybara.
GitOrigin-RevId: 3a8d7958a610cd3fec3a6f424480f91a1b259185
2021-06-29 00:13:55 +01:00

34 lines
644 B
Nix

{ 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;
};
}