From f255e6b7276b24b5005a3d4e4bafe20b24bdf6ca Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 20 May 2024 09:30:43 +0200 Subject: [PATCH] python312Packages.pycomposefile: refactor --- .../python-modules/pycomposefile/default.nix | 22 ++++++++++++------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/pycomposefile/default.nix b/pkgs/development/python-modules/pycomposefile/default.nix index b504506c42b5..cc995e796638 100644 --- a/pkgs/development/python-modules/pycomposefile/default.nix +++ b/pkgs/development/python-modules/pycomposefile/default.nix @@ -1,36 +1,42 @@ { lib , buildPythonPackage , fetchPypi -, setuptools , pyyaml -, twine +, pythonOlder +, setuptools }: buildPythonPackage rec { pname = "pycomposefile"; version = "0.0.31"; - format = "setuptools"; + pyproject = true; + + disabled = pythonOlder "3.8"; src = fetchPypi { inherit pname version; - extension = "tar.gz"; hash = "sha256-SYul81giQLUM1FdgfabKJyrbSu4xdoaWblcE87ZbBwg="; }; - nativeBuildInput = [ + build-system = [ setuptools ]; - propagatedBuildInputs = [ + dependencies = [ pyyaml - twine ]; - doCheck = false; # tests are broken + # Tests are broken + doCheck = false; + + pythonImportsCheck = [ + "pycomposefile" + ]; meta = with lib; { description = "Python library for structured deserialization of Docker Compose files"; homepage = "https://github.com/smurawski/pycomposefile"; + changelog = "https://github.com/smurawski/pycomposefile/releases/tag/v${version}"; license = licenses.mit; maintainers = with maintainers; [ mdarocha ]; };