depot/third_party/nixpkgs/pkgs/development/python-modules/aiounittest/default.nix
Default email 620eecebfb Project import generated by Copybara.
GitOrigin-RevId: 2deb07f3ac4eeb5de1c12c4ba2911a2eb1f6ed61
2021-10-28 08:52:43 +02:00

43 lines
719 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, nose
, coverage
, isPy27
, wrapt
}:
buildPythonPackage rec {
pname = "aiounittest";
version = "1.4.1";
disabled = isPy27;
src = fetchFromGitHub {
owner = "kwarunek";
repo = pname;
rev = version;
sha256 = "sha256-FixGF1JLJVqTgLaWugbeu8f+SDjpHSdSLoGklYBup4M=";
};
propagatedBuildInputs = [
wrapt
];
checkInputs = [
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 ];
};
}