2020-08-23 20:59:17 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, click
|
|
|
|
, distro
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "userpath";
|
|
|
|
version = "1.4.1";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256="0mfjmvx286z1dmnrc7bm65x8gj8qrmkcyagl0vf5ywfq0bm48591";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ click distro ];
|
|
|
|
|
2020-08-24 04:51:50 +01:00
|
|
|
# test suite is difficult to emulate in sandbox due to shell manipulation
|
2020-08-23 20:59:17 +01:00
|
|
|
doCheck = false;
|
|
|
|
|
2020-08-24 03:12:37 +01:00
|
|
|
pythonImportsCheck = [ "click" "userpath" ];
|
2020-08-23 20:59:17 +01:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
maintainers = with maintainers; [ yevhenshymotiuk ];
|
|
|
|
};
|
|
|
|
}
|