depot/third_party/nixpkgs/pkgs/development/python-modules/aiounittest/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

45 lines
805 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonAtLeast,
setuptools,
pynose,
coverage,
wrapt,
}:
buildPythonPackage rec {
pname = "aiounittest";
version = "1.4.2";
pyproject = true;
src = fetchFromGitHub {
owner = "kwarunek";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-7lDOI1SHPpRZLTHRTmfbKlZH18T73poJdFyVmb+HKms=";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [ wrapt ];
nativeCheckInputs = [
pynose
coverage
];
checkPhase = ''
nosetests -e test_specific_test
'';
pythonImportsCheck = [ "aiounittest" ];
meta = with lib; {
description = "Test asyncio code more easily";
homepage = "https://github.com/kwarunek/aiounittest";
license = licenses.mit;
maintainers = [ ];
};
}