2020-09-25 04:45:31 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2023-04-29 16:46:19 +00:00
|
|
|
, hatchling
|
2020-09-25 04:45:31 +00:00
|
|
|
, click
|
2023-04-29 16:46:19 +00:00
|
|
|
, pythonOlder
|
2020-09-25 04:45:31 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "userpath";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "1.9.1";
|
2023-04-29 16:46:19 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-zoF2co2YyRS2QBeBvzsj/M2WjRZHU5yHiMcBA3XgJ5Y=";
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
hatchling
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
click
|
|
|
|
];
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
# Test suite is difficult to emulate in sandbox due to shell manipulation
|
2020-09-25 04:45:31 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"userpath"
|
|
|
|
];
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Cross-platform tool for adding locations to the user PATH";
|
|
|
|
homepage = "https://github.com/ofek/userpath";
|
2023-04-29 16:46:19 +00:00
|
|
|
changelog = "https://github.com/ofek/userpath/releases/tag/v${version}";
|
|
|
|
license = with licenses; [ asl20 mit ];
|
2022-02-10 20:34:41 +00:00
|
|
|
maintainers = with maintainers; [ yshym ];
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
}
|