5e7c2d6cef
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
43 lines
878 B
Nix
43 lines
878 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, hatchling
|
|
, click
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "userpath";
|
|
version = "1.9.1";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-zoF2co2YyRS2QBeBvzsj/M2WjRZHU5yHiMcBA3XgJ5Y=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
hatchling
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
click
|
|
];
|
|
|
|
# Test suite is difficult to emulate in sandbox due to shell manipulation
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
"userpath"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Cross-platform tool for adding locations to the user PATH";
|
|
homepage = "https://github.com/ofek/userpath";
|
|
changelog = "https://github.com/ofek/userpath/releases/tag/v${version}";
|
|
license = with licenses; [ asl20 mit ];
|
|
maintainers = with maintainers; [ yshym ];
|
|
};
|
|
}
|