Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python310Packages.userpath: update build system #228743

Merged
merged 1 commit into from
Apr 28, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 20 additions & 6 deletions pkgs/development/python-modules/userpath/default.nix
Original file line number Diff line number Diff line change
@@ -1,29 +1,43 @@
{ lib
, buildPythonPackage
, fetchPypi
, hatchling
, click
, pythonOlder
}:

buildPythonPackage rec {
pname = "userpath";
version = "1.7.0";
version = "1.8.0";
format = "pyproject";

disabled = pythonOlder "3.7";

src = fetchPypi {
inherit pname version;
sha256="sha256-3NZsX6mxo8EjYvMJu7W8eZK6yK+G0XtOaxpLFmoRxD8=";
hash = "sha256-BCM9L8/lz/kRweT7cYl1VkDhUk/4ekuCq51rh1/uV4c=";
};

propagatedBuildInputs = [ click ];
nativeBuildInputs = [
hatchling
];

propagatedBuildInputs = [
click
];

# test suite is difficult to emulate in sandbox due to shell manipulation
# Test suite is difficult to emulate in sandbox due to shell manipulation
doCheck = false;

pythonImportsCheck = [ "click" "userpath" ];
pythonImportsCheck = [
"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 ];
changelog = "https://github.com/ofek/userpath/releases/tag/v${version}";
license = with licenses; [ asl20 mit ];
maintainers = with maintainers; [ yshym ];
};
}