2018-01-20 13:01:53 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pytest
|
|
|
|
, click
|
|
|
|
, isPy3k
|
|
|
|
, futures
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "click-threading";
|
2018-02-03 10:51:48 +01:00
|
|
|
version = "0.4.4";
|
2018-01-20 13:01:53 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-02-03 10:51:48 +01:00
|
|
|
sha256 = "b2b0fada5bf184b56afaccc99d0d2548d8ab07feb2e95e29e490f6b99c605de7";
|
2018-01-20 13:01:53 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|