Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #72078 from prusnak/py3buddy
pythonPackages.py3buddy: init at unstable-2019-09-29
- Loading branch information
Showing
2 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters