diff options
Diffstat (limited to 'pkgs/development/python-modules/aiorun/default.nix')
-rw-r--r-- | pkgs/development/python-modules/aiorun/default.nix | 38 |
1 files changed, 17 insertions, 21 deletions
diff --git a/pkgs/development/python-modules/aiorun/default.nix b/pkgs/development/python-modules/aiorun/default.nix index f0e63e0ae374c..318411ae9a5dd 100644 --- a/pkgs/development/python-modules/aiorun/default.nix +++ b/pkgs/development/python-modules/aiorun/default.nix @@ -1,43 +1,41 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, fetchpatch -, flit-core -, pygments -, pytestCheckHook -, uvloop +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + fetchpatch, + flit-core, + pygments, + pytestCheckHook, + uvloop, }: buildPythonPackage rec { pname = "aiorun"; version = "2023.7.2"; - format = "pyproject"; + pyproject = true; disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "cjrh"; - repo = pname; + repo = "aiorun"; rev = "refs/tags/v${version}"; hash = "sha256-3AGsT8IUNi5SZHBsBfd7akj8eQ+xb0mrR7ydIr3T8gs="; }; patches = [ # Raise flit-core version constrains - (fetchpatch { # https://github.com/cjrh/aiorun/pull/85 + (fetchpatch { + # https://github.com/cjrh/aiorun/pull/85 url = "https://github.com/cjrh/aiorun/commit/a0c027ea331167712738e35ca70fefcd794e16d5.patch"; hash = "sha256-M1rcrkdFcoFa3IncPnJaRhnXbelyk56QnMGtmgB6bvk="; }) ]; - nativeBuildInputs = [ - flit-core - ]; + build-system = [ flit-core ]; - propagatedBuildInputs = [ - pygments - ]; + dependencies = [ pygments ]; nativeCheckInputs = [ pytestCheckHook @@ -49,9 +47,7 @@ buildPythonPackage rec { export HOME=$TMPDIR ''; - pythonImportsCheck = [ - "aiorun" - ]; + pythonImportsCheck = [ "aiorun" ]; meta = with lib; { description = "Boilerplate for asyncio applications"; |