depot/third_party/nixpkgs/pkgs/development/python-modules/py3buddy/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

38 lines
867 B
Nix

{ stdenv
, fetchFromGitHub
, python
, pyusb
}:
stdenv.mkDerivation rec {
pname = "py3buddy";
version = "unstable-2019-09-29";
src = fetchFromGitHub {
owner = "armijnhemel";
repo = pname;
rev = "2b28908454645117368ca56df67548c93f4e0b03";
sha256 = "12ar4kbplavndarkrbibxi5i607f5sfia5myscvalqy78lc33798";
};
propagatedBuildInputs = [ pyusb ];
dontConfigure = true;
dontBuild = true;
dontCheck = true;
installPhase = ''
install -D py3buddy.py $out/${python.sitePackages}/py3buddy.py
'';
postInstall = ''
install -D 99-ibuddy.rules $out/lib/udev/rules.d/99-ibuddy.rules
'';
meta = with stdenv.lib; {
description = "Code to work with the iBuddy MSN figurine";
homepage = "https://github.com/armijnhemel/py3buddy";
license = with licenses; [ mit ];
maintainers = with maintainers; [ prusnak ];
};
}