python3Packages.asyncinotify: switch to pypaBuildHook

This commit is contained in:
Peder Bergebakken Sundt 2023-09-10 00:03:24 +02:00
parent 6eefba1026
commit 9ecbc30949

View file

@ -1,13 +1,14 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchFromGitLab , fetchFromGitLab
, flit-core
, python , python
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "asyncinotify"; pname = "asyncinotify";
version = "4.0.2"; version = "4.0.2";
format = "flit"; format = "pyproject";
src = fetchFromGitLab { src = fetchFromGitLab {
owner = "Taywee"; owner = "Taywee";
@ -16,6 +17,10 @@ buildPythonPackage rec {
hash = "sha256-Q7b406UENCmD9SGbaml+y2YLDi7VLZBmDkYMo8CLuVw="; hash = "sha256-Q7b406UENCmD9SGbaml+y2YLDi7VLZBmDkYMo8CLuVw=";
}; };
nativeBuildInputs = [
flit-core
];
checkPhase = '' checkPhase = ''
${python.pythonForBuild.interpreter} ${src}/test.py ${python.pythonForBuild.interpreter} ${src}/test.py
''; '';