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