mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-08 10:04:24 +01:00
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
39 lines
860 B
Nix
39 lines
860 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
hatchling,
|
|
click,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "userpath";
|
|
version = "1.9.2";
|
|
pyproject = true;
|
|
|
|
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 = {
|
|
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 lib.licenses; [
|
|
asl20
|
|
mit
|
|
];
|
|
maintainers = with lib.maintainers; [ yshym ];
|
|
};
|
|
}
|