Skip to content

Commit

Permalink
Merge pull request #307823 from afh/update-py3buddy
Browse files Browse the repository at this point in the history
py3buddy: unstable-2019-09-29 -> 1.0
  • Loading branch information
prusnak authored Apr 29, 2024
2 parents e27d2a7 + 4e304c8 commit c8148ed
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions pkgs/development/python-modules/py3buddy/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,35 +4,38 @@
, pyusb
}:

stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "py3buddy";
version = "unstable-2019-09-29";
version = "1.0";

src = fetchFromGitHub {
owner = "armijnhemel";
repo = pname;
rev = "2b28908454645117368ca56df67548c93f4e0b03";
sha256 = "12ar4kbplavndarkrbibxi5i607f5sfia5myscvalqy78lc33798";
repo = "py3buddy";
rev = finalAttrs.version;
hash = "sha256-KJ0xGEXHY6o2074WFZ0u7gATS+wrrjyzanYretckWYk=";
};

propagatedBuildInputs = [ pyusb ];

dontConfigure = true;
dontBuild = true;
dontCheck = 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 = with lib; {
meta = {
description = "Code to work with the iBuddy MSN figurine";
homepage = "https://github.com/armijnhemel/py3buddy";
license = with licenses; [ mit ];
maintainers = with maintainers; [ prusnak ];
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ prusnak ];
};
}
})

0 comments on commit c8148ed

Please sign in to comment.