2018-01-20 12:01:53 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pytest
|
|
|
|
, click
|
|
|
|
, isPy3k
|
2021-03-24 16:45:56 +00:00
|
|
|
, futures ? null
|
2018-01-20 12:01:53 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "click-threading";
|
2021-06-14 08:32:57 +00:00
|
|
|
version = "0.5.0";
|
2018-01-20 12:01:53 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-06-14 08:32:57 +00:00
|
|
|
sha256 = "sha256-rc/mI8AqWVwQfDFAcvZ6Inj+TrQLcsDRoskDzHivNDk=";
|
2018-01-20 12:01:53 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ pytest ];
|
|
|
|
propagatedBuildInputs = [ click ] ++ lib.optional (!isPy3k) futures;
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test
|
|
|
|
'';
|
|
|
|
|
|
|
|
# Tests are broken on 3.x
|
|
|
|
doCheck = !isPy3k;
|
|
|
|
|
|
|
|
meta = {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/click-contrib/click-threading/";
|
2018-01-20 12:01:53 +00:00
|
|
|
description = "Multithreaded Click apps made easy";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
};
|
2020-04-01 01:11:51 +00:00
|
|
|
}
|