depot/third_party/nixpkgs/pkgs/development/python-modules/userpath/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

44 lines
904 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, hatchling
, click
, pythonOlder
}:
buildPythonPackage rec {
pname = "userpath";
version = "1.9.2";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-bFIojasGklfMgxhG0V1IEzUiRV1Gd+5pqXgfEdvv2BU=";
};
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";
mainProgram = "userpath";
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 ];
};
}