e7ec2969af
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
51 lines
845 B
Nix
51 lines
845 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pythonAtLeast
|
|
, setuptools
|
|
, nose
|
|
, coverage
|
|
, wrapt
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aiounittest";
|
|
version = "1.4.2";
|
|
pyproject = true;
|
|
|
|
# requires the imp module
|
|
disabled = pythonAtLeast "3.12";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kwarunek";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-7lDOI1SHPpRZLTHRTmfbKlZH18T73poJdFyVmb+HKms=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
];
|
|
|
|
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 = [ ];
|
|
};
|
|
}
|