Merge pull request #85899
This commit is contained in:
21
pkgs/development/python-modules/libevdev/default.nix
Normal file
21
pkgs/development/python-modules/libevdev/default.nix
Normal file
@@ -0,0 +1,21 @@
|
||||
{ stdenv, buildPythonPackage, isPy27, fetchPypi }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "libevdev";
|
||||
version = "0.7";
|
||||
disabled = isPy27;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "10gwj08kn2rs4waq7807mq34cbavgkpg8fpir8mvnba601b8q4r4";
|
||||
};
|
||||
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Python wrapper around the libevdev C library";
|
||||
homepage = "https://gitlab.freedesktop.org/libevdev/python-libevdev";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ nickhu ];
|
||||
};
|
||||
}
|
||||
25
pkgs/development/python-modules/pynput/default.nix
Normal file
25
pkgs/development/python-modules/pynput/default.nix
Normal file
@@ -0,0 +1,25 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi, sphinx, setuptools-lint, xlib }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pynput";
|
||||
version = "1.6.8";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "16h4wn7f54rw30jrya7rmqkx3f51pxn8cplid95v880md8yqdhb8";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ sphinx ];
|
||||
|
||||
propagatedBuildInputs = [ setuptools-lint xlib ];
|
||||
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A library to control and monitor input devices";
|
||||
homepage = "https://github.com/moses-palmer/pynput";
|
||||
license = licenses.lgpl3;
|
||||
maintainers = with maintainers; [ nickhu ];
|
||||
};
|
||||
}
|
||||
|
||||
35
pkgs/development/python-modules/screeninfo/default.nix
Normal file
35
pkgs/development/python-modules/screeninfo/default.nix
Normal file
@@ -0,0 +1,35 @@
|
||||
{ stdenv, buildPythonApplication, fetchPypi, isPy36, dataclasses, libX11, libXinerama, libXrandr }:
|
||||
|
||||
buildPythonApplication rec {
|
||||
pname = "screeninfo";
|
||||
version = "0.6.5";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0vcw54crdgmbzwlrfg80kd1a8p9i10yks8k0szzi0k5q80zhp8xz";
|
||||
};
|
||||
|
||||
# dataclasses is a compatibility shim for python 3.6 ONLY
|
||||
patchPhase = if isPy36 then "" else ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "\"dataclasses\"," ""
|
||||
'' + ''
|
||||
substituteInPlace screeninfo/enumerators/xinerama.py \
|
||||
--replace "load_library(\"X11\")" "ctypes.cdll.LoadLibrary(\"${libX11}/lib/libX11.so\")" \
|
||||
--replace "load_library(\"Xinerama\")" "ctypes.cdll.LoadLibrary(\"${libXinerama}/lib/libXinerama.so\")"
|
||||
substituteInPlace screeninfo/enumerators/xrandr.py \
|
||||
--replace "load_library(\"X11\")" "ctypes.cdll.LoadLibrary(\"${libX11}/lib/libX11.so\")" \
|
||||
--replace "load_library(\"Xrandr\")" "ctypes.cdll.LoadLibrary(\"${libXrandr}/lib/libXrandr.so\")"
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = stdenv.lib.optional isPy36 dataclasses;
|
||||
|
||||
buildInputs = [ libX11 libXinerama libXrandr];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Fetch location and size of physical screens";
|
||||
homepage = "https://github.com/rr-/screeninfo";
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.nickhu ];
|
||||
};
|
||||
}
|
||||
21
pkgs/development/python-modules/setuptools-lint/default.nix
Normal file
21
pkgs/development/python-modules/setuptools-lint/default.nix
Normal file
@@ -0,0 +1,21 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi, pylint }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "setuptools-lint";
|
||||
version = "0.6.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "16a1ac5n7k7sx15cnk03gw3fmslab3a7m74dc45rgpldgiff3577";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ pylint ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Package to expose pylint as a lint command into setup.py";
|
||||
homepage = "https://github.com/johnnoone/setuptools-pylint";
|
||||
license = licenses.bsdOriginal;
|
||||
maintainers = with maintainers; [ nickhu ];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user