nixpkgs/pkgs/development/python-modules/aiorun/default.nix
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00

50 lines
928 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
];
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; [ costrouc ];
};
}