depot/third_party/nixpkgs/pkgs/development/python-modules/aiounittest/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

44 lines
742 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, nose
, coverage
, isPy27
, wrapt
}:
buildPythonPackage rec {
pname = "aiounittest";
version = "1.4.2";
format = "setuptools";
disabled = isPy27;
src = fetchFromGitHub {
owner = "kwarunek";
repo = pname;
rev = "refs/tags/${version}";
hash = "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 = [ ];
};
}