2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
hatchling,
|
|
|
|
click,
|
|
|
|
pythonOlder,
|
2020-09-25 04:45:31 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "userpath";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "1.9.2";
|
|
|
|
pyproject = true;
|
2023-04-29 16:46:19 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-bFIojasGklfMgxhG0V1IEzUiRV1Gd+5pqXgfEdvv2BU=";
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ hatchling ];
|
2023-04-29 16:46:19 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [ click ];
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
# Test suite is difficult to emulate in sandbox due to shell manipulation
|
2020-09-25 04:45:31 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "userpath" ];
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Cross-platform tool for adding locations to the user PATH";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "userpath";
|
2020-09-25 04:45:31 +00:00
|
|
|
homepage = "https://github.com/ofek/userpath";
|
2023-04-29 16:46:19 +00:00
|
|
|
changelog = "https://github.com/ofek/userpath/releases/tag/v${version}";
|
2024-06-05 15:53:02 +00:00
|
|
|
license = with licenses; [
|
|
|
|
asl20
|
|
|
|
mit
|
|
|
|
];
|
2022-02-10 20:34:41 +00:00
|
|
|
maintainers = with maintainers; [ yshym ];
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
}
|