mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 12:43:52 +00:00
02dab4ab5c
Long term we should move everything over to `pyproject = true`, but in the mean time we can work towards deprecating the implicit `format` paremeter. cc https://github.com/NixOS/nixpkgs/issues/253154 cc @mweinelt @figsoda
29 lines
609 B
Nix
29 lines
609 B
Nix
{ lib, fetchFromGitHub, buildPythonPackage
|
|
, evdev, pyudev
|
|
, bluez
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ds4drv";
|
|
version = "0.5.1";
|
|
format = "setuptools";
|
|
|
|
# PyPi only carries py3 wheel
|
|
src = fetchFromGitHub {
|
|
owner = "chrippa";
|
|
repo = "ds4drv";
|
|
rev = "v${version}";
|
|
sha256 = "0vinpla0apizzykcyfis79mrm1i6fhns83nkzw85svypdhkx2g8v";
|
|
};
|
|
|
|
propagatedBuildInputs = [ evdev pyudev ];
|
|
|
|
buildInputs = [ bluez ];
|
|
|
|
meta = {
|
|
description = "Userspace driver for the DualShock 4 controller";
|
|
homepage = "https://github.com/chrippa/ds4drv";
|
|
license = lib.licenses.mit;
|
|
};
|
|
}
|