From 6e8a0ca7ab6d0e89705311d6251e6d8f88ac4875 Mon Sep 17 00:00:00 2001 From: natsukium Date: Tue, 17 Oct 2023 15:08:26 +0900 Subject: [PATCH] python311Packages.mung: refactor - add pythonImportsCheck - introduce a new parameter for pyproject --- pkgs/development/python-modules/mung/default.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/mung/default.nix b/pkgs/development/python-modules/mung/default.nix index 5001a59e60d2..03fcd29dba75 100644 --- a/pkgs/development/python-modules/mung/default.nix +++ b/pkgs/development/python-modules/mung/default.nix @@ -1,6 +1,7 @@ { lib , buildPythonPackage , fetchFromGitHub +, setuptools , lxml , numpy , pytestCheckHook @@ -12,6 +13,7 @@ in buildPythonPackage { pname = "mung"; inherit version; + pyproject = true; src = fetchFromGitHub { owner = "OMR-Research"; @@ -20,7 +22,9 @@ buildPythonPackage { hash = "sha256-NSKaJkJRevTy5gh6/ik8Qe46bOPdznsmXPgh7Xz7vXQ="; }; - format = "setuptools"; + nativeBuildInputs = [ + setuptools + ]; propagatedBuildInputs = [ lxml @@ -32,6 +36,10 @@ buildPythonPackage { pytestCheckHook ]; + pythonImportsCheck = [ + "mung" + ]; + meta = with lib; { description = "Music Notation Graph: a data model for optical music recognition"; homepage = "https://github.com/OMR-Research/mung";