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

48 lines
859 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
2020-07-04 15:32:01 +01:00
, pygments
, pytestCheckHook
, pytest-cov
, uvloop
}:
buildPythonPackage rec {
pname = "aiorun";
version = "2021.8.1";
format = "flit";
disabled = pythonOlder "3.5";
src = fetchFromGitHub {
owner = "cjrh";
repo = pname;
rev = "v${version}";
sha256 = "sha256-aehYPZ1+GEO+bNSsE5vVgjtVo4MRMH+vNurk+bJ1/Io=";
};
2020-07-04 15:32:01 +01:00
propagatedBuildInputs = [
pygments
];
checkInputs = [
pytestCheckHook
pytest-cov
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 = with maintainers; [ costrouc ];
};
}