2019-12-29 18:07:42 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, nose
|
|
|
|
, coverage
|
|
|
|
, isPy27
|
2021-07-02 07:09:32 +00:00
|
|
|
, wrapt
|
2019-12-29 18:07:42 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aiounittest";
|
2021-10-24 19:53:17 +00:00
|
|
|
version = "1.4.1";
|
2019-12-29 18:07:42 +00:00
|
|
|
disabled = isPy27;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kwarunek";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-10-24 19:53:17 +00:00
|
|
|
sha256 = "sha256-FixGF1JLJVqTgLaWugbeu8f+SDjpHSdSLoGklYBup4M=";
|
2019-12-29 18:07:42 +00:00
|
|
|
};
|
|
|
|
|
2021-07-02 07:09:32 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
wrapt
|
|
|
|
];
|
|
|
|
|
2019-12-29 18:07:42 +00:00
|
|
|
checkInputs = [
|
|
|
|
nose
|
|
|
|
coverage
|
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
nosetests
|
|
|
|
'';
|
|
|
|
|
2021-07-02 07:09:32 +00:00
|
|
|
pythonImportsCheck = [ "aiounittest" ];
|
|
|
|
|
2019-12-29 18:07:42 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Test asyncio code more easily";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/kwarunek/aiounittest";
|
2019-12-29 18:07:42 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|