From 0f569569375542e31a3a4e9accdbe603d470eea2 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 28 Apr 2023 16:55:47 +0200 Subject: [PATCH] python310Packages.userpath: update build system - add changelog to meta - disable on unsupported Python releases --- .../python-modules/userpath/default.nix | 26 ++++++++++++++----- 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/userpath/default.nix b/pkgs/development/python-modules/userpath/default.nix index 636409f1d967..46fc9ab92512 100644 --- a/pkgs/development/python-modules/userpath/default.nix +++ b/pkgs/development/python-modules/userpath/default.nix @@ -1,29 +1,43 @@ { lib , buildPythonPackage , fetchPypi +, hatchling , click +, pythonOlder }: buildPythonPackage rec { pname = "userpath"; - version = "1.7.0"; + version = "1.8.0"; + format = "pyproject"; + + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - sha256="sha256-3NZsX6mxo8EjYvMJu7W8eZK6yK+G0XtOaxpLFmoRxD8="; + hash = "sha256-BCM9L8/lz/kRweT7cYl1VkDhUk/4ekuCq51rh1/uV4c="; }; - propagatedBuildInputs = [ click ]; + nativeBuildInputs = [ + hatchling + ]; - # test suite is difficult to emulate in sandbox due to shell manipulation + propagatedBuildInputs = [ + click + ]; + + # Test suite is difficult to emulate in sandbox due to shell manipulation doCheck = false; - pythonImportsCheck = [ "click" "userpath" ]; + pythonImportsCheck = [ + "userpath" + ]; meta = with lib; { description = "Cross-platform tool for adding locations to the user PATH"; homepage = "https://github.com/ofek/userpath"; - license = [ licenses.asl20 licenses.mit ]; + changelog = "https://github.com/ofek/userpath/releases/tag/v${version}"; + license = with licenses; [ asl20 mit ]; maintainers = with maintainers; [ yshym ]; }; }