587713944a
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
48 lines
807 B
Nix
48 lines
807 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 = [ ];
|
|
};
|
|
}
|