Skip to content

Commit

Permalink
Merge pull request #72078 from prusnak/py3buddy
Browse files Browse the repository at this point in the history
pythonPackages.py3buddy: init at unstable-2019-09-29
  • Loading branch information
mmahut committed Oct 27, 2019
2 parents e59c610 + b3a629c commit aa06cb3
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
38 changes: 38 additions & 0 deletions pkgs/development/python-modules/py3buddy/default.nix
@@ -0,0 +1,38 @@
{ 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/lib/${python.libPrefix}/site-packages/py3buddy.py
'';

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 = with stdenv.lib.licenses; [ mit ];
maintainers = with stdenv.lib.maintainers; [ prusnak ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Expand Up @@ -906,6 +906,8 @@ in {

pybind11 = callPackage ../development/python-modules/pybind11 { };

py3buddy = callPackage ../development/python-modules/py3buddy { };

pybullet = callPackage ../development/python-modules/pybullet { };

pycairo = callPackage ../development/python-modules/pycairo {
Expand Down

0 comments on commit aa06cb3

Please sign in to comment.