3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/aiorun/default.nix

49 lines
837 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchFromGitHub
, isPy27
2020-07-04 15:32:01 +01:00
, pygments
, pytestCheckHook
, pytestcov
, uvloop
}:
buildPythonPackage rec {
pname = "aiorun";
version = "2020.6.1";
format = "flit";
disabled = isPy27;
src = fetchFromGitHub {
owner = "cjrh";
repo = pname;
rev = "v${version}";
sha256 = "00mq5ylhhdfdqrh7zdqabf3wy85jrkqvgfb1421ll46fsjim2d14";
};
2020-07-04 15:32:01 +01:00
propagatedBuildInputs = [
pygments
];
checkInputs = [
pytestCheckHook
pytestcov
uvloop
];
# allow for writable directory for darwin
preBuild = ''
export HOME=$TMPDIR
'';
pythonImportsCheck = [ "aiorun" ];
meta = with lib; {
description = "Boilerplate for asyncio applications";
homepage = "https://github.com/cjrh/aiorun";
license = licenses.asl20;
maintainers = [ maintainers.costrouc ];
};
}