1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 hatchling,
6 click,
7 pythonOlder,
8}:
9
10buildPythonPackage rec {
11 pname = "userpath";
12 version = "1.9.2";
13 pyproject = true;
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchPypi {
18 inherit pname version;
19 hash = "sha256-bFIojasGklfMgxhG0V1IEzUiRV1Gd+5pqXgfEdvv2BU=";
20 };
21
22 nativeBuildInputs = [ hatchling ];
23
24 propagatedBuildInputs = [ click ];
25
26 # Test suite is difficult to emulate in sandbox due to shell manipulation
27 doCheck = false;
28
29 pythonImportsCheck = [ "userpath" ];
30
31 meta = with lib; {
32 description = "Cross-platform tool for adding locations to the user PATH";
33 mainProgram = "userpath";
34 homepage = "https://github.com/ofek/userpath";
35 changelog = "https://github.com/ofek/userpath/releases/tag/v${version}";
36 license = with licenses; [
37 asl20
38 mit
39 ];
40 maintainers = with maintainers; [ yshym ];
41 };
42}