1{ lib
2, buildPythonPackage
3, fetchPypi
4, click
5, distro
6}:
7
8buildPythonPackage rec {
9 pname = "userpath";
10 version = "1.4.1";
11
12 src = fetchPypi {
13 inherit pname version;
14 sha256="0mfjmvx286z1dmnrc7bm65x8gj8qrmkcyagl0vf5ywfq0bm48591";
15 };
16
17 propagatedBuildInputs = [ click distro ];
18
19 # test suite is difficult to emulate in sandbox due to shell manipulation
20 doCheck = false;
21
22 pythonImportsCheck = [ "click" "userpath" ];
23
24 meta = with lib; {
25 description = "Cross-platform tool for adding locations to the user PATH";
26 homepage = "https://github.com/ofek/userpath";
27 license = [ licenses.asl20 licenses.mit ];
28 maintainers = with maintainers; [ yevhenshymotiuk ];
29 };
30}