095ecf7356
* Use pythonPackages instead of python2Packages * Add vncdo to top-level/python-packages so the library can be used by other Python programs * Use toPythonApplication for vnc in top-level/all-packages * run tests if using Python 3+ * move expression to development/python-modules
39 lines
742 B
Nix
39 lines
742 B
Nix
{ stdenv, fetchFromGitHub
|
|
, buildPythonPackage, isPy27
|
|
, pillow
|
|
, twisted
|
|
, pexpect
|
|
, nose
|
|
, ptyprocess
|
|
}:
|
|
buildPythonPackage rec {
|
|
pname = "vncdo";
|
|
version = "0.12.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "sibson";
|
|
repo = "vncdotool";
|
|
rev = "v${version}";
|
|
sha256 = "0h3ccr8zi7xpgn6hz43x1045x5l4bhha7py8x00g8bv6gaqlbwxn";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
pillow
|
|
twisted
|
|
pexpect
|
|
nose
|
|
ptyprocess
|
|
];
|
|
|
|
doCheck = !isPy27;
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = "https://github.com/sibson/vncdotool";
|
|
description = "A command line VNC client and python library";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ elitak ];
|
|
platforms = with platforms; linux ++ darwin;
|
|
};
|
|
|
|
}
|