2020-09-25 04:45:31 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, click
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "userpath";
|
2021-06-06 07:54:09 +00:00
|
|
|
version = "1.6.0";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-06-06 07:54:09 +00:00
|
|
|
sha256="1xpgdmdvhmmmdlivsqlzx1xvyj0gcnfp0j2ba5izmv3q2k5abfdj";
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
propagatedBuildInputs = [ click ];
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
# test suite is difficult to emulate in sandbox due to shell manipulation
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "click" "userpath" ];
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|