depot/third_party/nixpkgs/pkgs/development/python-modules/aiorun/default.nix
Default email 6d4aeb4377 Project import generated by Copybara.
GitOrigin-RevId: 0f213d0fee84280d8c3a97f7469b988d6fe5fcdf
2023-01-11 08:51:40 +01:00

49 lines
922 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, pygments
, pytestCheckHook
, uvloop
}:
buildPythonPackage rec {
pname = "aiorun";
version = "2022.11.1";
format = "flit";
disabled = pythonOlder "3.5";
src = fetchFromGitHub {
owner = "cjrh";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-1qXt3HT/0sECOqPRwc0p+5+YZh1kyHSbkZHajcrjvZc=";
};
propagatedBuildInputs = [
pygments
];
checkInputs = [
pytestCheckHook
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";
changelog = "https://github.com/cjrh/aiorun/blob/v${version}/CHANGES";
license = licenses.asl20;
maintainers = with maintainers; [ costrouc ];
};
}