sqlite_orm: 1.9 -> 1.9.1 (#379250)
[NixPkgs.git] / pkgs / by-name / us / usbsdmux / package.nix
blobd50dff5fe10f8b4b574932f0d53e31fc15ee33c5
2   lib,
3   python3Packages,
4   fetchPypi,
5 }:
7 python3Packages.buildPythonApplication rec {
8   pname = "usbsdmux";
9   version = "24.1.1";
11   src = fetchPypi {
12     inherit pname version;
13     hash = "sha256-OtGgToDGUr6pBu9+LS/DxaYw/9+Pd6jPhxVDAM22HB4=";
14   };
16   # Remove the wrong GROUP=plugdev.
17   # The udev rule already has TAG+="uaccess", which is sufficient.
18   postPatch = ''
19     substituteInPlace contrib/udev/99-usbsdmux.rules \
20       --replace-fail 'TAG+="uaccess", GROUP="plugdev"' 'TAG+="uaccess"'
21   '';
23   # usbsdmux is not meant to be used as an importable module and has no tests
24   doCheck = false;
26   postInstall = ''
27     install -Dm0444 -t $out/lib/udev/rules.d/ contrib/udev/99-usbsdmux.rules
28   '';
30   meta = with lib; {
31     description = "Control software for the LXA USB-SD-Mux";
32     homepage = "https://github.com/linux-automation/usbsdmux";
33     license = licenses.lgpl21;
34     maintainers = with maintainers; [ emantor ];
35     platforms = with platforms; linux;
36   };