depot/third_party/nixpkgs/pkgs/development/python-modules/py3buddy/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

44 lines
885 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
python,
pyusb,
}:
buildPythonPackage rec {
pname = "py3buddy";
version = "1.0";
pyproject = false; # manually installed
src = fetchFromGitHub {
owner = "armijnhemel";
repo = "py3buddy";
rev = version;
hash = "sha256-KJ0xGEXHY6o2074WFZ0u7gATS+wrrjyzanYretckWYk=";
};
dependencies = [ pyusb ];
dontConfigure = true;
dontBuild = true;
installPhase = ''
runHook preInstall
install -D py3buddy.py $out/${python.sitePackages}/py3buddy.py
runHook postInstall
'';
postInstall = ''
install -D 99-ibuddy.rules $out/lib/udev/rules.d/99-ibuddy.rules
'';
meta = {
description = "Code to work with the iBuddy MSN figurine";
homepage = "https://github.com/armijnhemel/py3buddy";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ prusnak ];
};
}