31 lines
674 B
Nix
31 lines
674 B
Nix
{pkgs ? import <nixpkgs> {}}:
|
|
with pkgs.python3Packages;
|
|
buildPythonPackage rec {
|
|
pname = "xlib-hotkeys";
|
|
version = "2024.3.0";
|
|
pyproject = true;
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
pname = "xlib_hotkeys";
|
|
version = version;
|
|
sha256 = "sha256-KRGoZ45OgU5UOMZImTDIrgTXFPzaAN0N/IvHeonW2UU=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace pyproject.toml \
|
|
--replace-fail "setuptools~=68.0.0" "setuptools" \
|
|
--replace-fail "wheel~=0.40.0" "wheel"
|
|
'';
|
|
|
|
build-system = [setuptools];
|
|
|
|
dependencies = [
|
|
# Build system
|
|
setuptools
|
|
wheel
|
|
|
|
# dependencies
|
|
xlib
|
|
];
|
|
}
|