mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 04:02:10 +00:00
ced21f5e1a
The `buildPython*` function computes name from `pname` and `version`. This change removes `name` attribute from all expressions in `pkgs/development/python-modules`. While at it, some other minor changes were made as well, such as replacing `fetchurl` calls with `fetchPypi`.
28 lines
582 B
Nix
28 lines
582 B
Nix
{ lib, fetchFromGitHub, buildPythonPackage
|
|
, evdev, pyudev
|
|
, bluez
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ds4drv";
|
|
version = "0.5.1";
|
|
|
|
# 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;
|
|
};
|
|
}
|