git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #72078 from prusnak/py3buddy

pythonPackages.py3buddy: init at unstable-2019-09-29

commitaa06cb3782de8ca81b00721a610bf181d50fdae8 authorMarek Mahut <marek.mahut@gmail.com> dateSun 27 Oct 2019, 14:58 (7 years ago) parente59c610b3a629c
2 files changed+40
pkgs/development/python-modules/py3buddy/default.nix+38 pkgs/top-level/python-packages.nix+2
pkgs/development/python-modules/py3buddy/default.nixnew file+38
@@ -0,0 +1,38 @@
1+{ stdenv
2+, fetchFromGitHub
3+, python
4+, pyusb
5+}:
6+
7+stdenv.mkDerivation rec {
8+ pname = "py3buddy";
9+ version = "unstable-2019-09-29";
10+
11+ src = fetchFromGitHub {
12+ owner = "armijnhemel";
13+ repo = pname;
14+ rev = "2b28908454645117368ca56df67548c93f4e0b03";
15+ sha256 = "12ar4kbplavndarkrbibxi5i607f5sfia5myscvalqy78lc33798";
16+ };
17+
18+ propagatedBuildInputs = [ pyusb ];
19+
20+ dontConfigure = true;
21+ dontBuild = true;
22+ dontCheck = true;
23+
24+ installPhase = ''
25+ install -D py3buddy.py $out/lib/${python.libPrefix}/site-packages/py3buddy.py
26+ '';
27+
28+ postInstall = ''
29+ install -D 99-ibuddy.rules $out/lib/udev/rules.d/99-ibuddy.rules
30+ '';
31+
32+ meta = {
33+ description = "Code to work with the iBuddy MSN figurine";
34+ homepage = "https://github.com/armijnhemel/py3buddy";
35+ license = with stdenv.lib.licenses; [ mit ];
36+ maintainers = with stdenv.lib.maintainers; [ prusnak ];
37+ };
38+}
pkgs/top-level/python-packages.nix+2
@@ -906,6 +906,8 @@ in {
906906
907907 pybind11 = callPackage ../development/python-modules/pybind11 { };
908908
909+ py3buddy = callPackage ../development/python-modules/py3buddy { };
910+
909911 pybullet = callPackage ../development/python-modules/pybullet { };
910912
911913 pycairo = callPackage ../development/python-modules/pycairo {