depot/third_party/nixpkgs/pkgs/development/python-modules/aiorun/default.nix
Default email 1ffc76754d Project import generated by Copybara.
GitOrigin-RevId: a5cc7d3197705f933d88e97c0c61849219ce76c1
2020-07-18 18:06:22 +02:00

50 lines
818 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, isPy27
, pygments
, pytest
, 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";
};
propagatedBuildInputs = [
pygments
];
checkInputs = [
pytest
pytestcov
uvloop
];
# allow for writable directory for darwin
preBuild = ''
export HOME=$TMPDIR
'';
checkPhase = ''
pytest
'';
meta = with lib; {
description = "Boilerplate for asyncio applications";
homepage = "https://github.com/cjrh/aiorun";
license = licenses.asl20;
maintainers = [ maintainers.costrouc ];
};
}