a0cb138ada
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
43 lines
740 B
Nix
43 lines
740 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, nose
|
|
, coverage
|
|
, isPy27
|
|
, wrapt
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aiounittest";
|
|
version = "1.4.2";
|
|
disabled = isPy27;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kwarunek";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
sha256 = "sha256-7lDOI1SHPpRZLTHRTmfbKlZH18T73poJdFyVmb+HKms=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
wrapt
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
nose
|
|
coverage
|
|
];
|
|
|
|
checkPhase = ''
|
|
nosetests
|
|
'';
|
|
|
|
pythonImportsCheck = [ "aiounittest" ];
|
|
|
|
meta = with lib; {
|
|
description = "Test asyncio code more easily";
|
|
homepage = "https://github.com/kwarunek/aiounittest";
|
|
license = licenses.mit;
|
|
maintainers = [ maintainers.costrouc ];
|
|
};
|
|
}
|