Merge pull request #307823 from afh/update-py3buddy

py3buddy: unstable-2019-09-29 -> 1.0
This commit is contained in:
Pavol Rusnak 2024-04-29 23:35:16 +02:00 committed by GitHub
commit c8148ed6f5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 ];
};
}
})