depot/third_party/nixpkgs/pkgs/development/python-modules/aiorun/default.nix
Default email d5f4a57cbf Project import generated by Copybara.
GitOrigin-RevId: ce5e4a6ef2e59d89a971bc434ca8ca222b9c7f5e
2023-08-10 09:59:29 +02:00

49 lines
918 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, pygments
, pytestCheckHook
, uvloop
}:
buildPythonPackage rec {
pname = "aiorun";
version = "2023.7.2";
format = "flit";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "cjrh";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-3AGsT8IUNi5SZHBsBfd7akj8eQ+xb0mrR7ydIr3T8gs=";
};
propagatedBuildInputs = [
pygments
];
nativeCheckInputs = [
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; [ ];
};
}