python3Packages.pyclip: init at 0.5.4
This commit is contained in:
parent
4bb4e58849
commit
5d70e69622
2 changed files with 42 additions and 0 deletions
40
pkgs/development/python-modules/pyclip/default.nix
Normal file
40
pkgs/development/python-modules/pyclip/default.nix
Normal file
|
@ -0,0 +1,40 @@
|
||||||
|
{ lib
|
||||||
|
, stdenv
|
||||||
|
, fetchFromGitHub
|
||||||
|
, buildPythonPackage
|
||||||
|
, pytest
|
||||||
|
, xclip
|
||||||
|
, xvfb-run
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "pyclip";
|
||||||
|
version = "0.5.4";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "spyoungtech";
|
||||||
|
repo = pname;
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "19ff9cgnfx03mbmy5zpbdi986ppx38a5jf97vkqnic4g5sd1qyrn";
|
||||||
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace setup.py \
|
||||||
|
--replace docs/README.md README.md
|
||||||
|
'';
|
||||||
|
|
||||||
|
checkInputs = [ pytest ] ++ lib.optionals stdenv.isLinux [ xclip xvfb-run ];
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
|
runHook preCheck
|
||||||
|
${lib.optionalString stdenv.isLinux "xvfb-run -s '-screen 0 800x600x24'"} pytest tests
|
||||||
|
runHook postCheck
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Cross-platform clipboard utilities supporting both binary and text data";
|
||||||
|
homepage = "https://github.com/spyoungtech/pyclip";
|
||||||
|
license = licenses.asl20;
|
||||||
|
maintainers = with maintainers; [ mcaju ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -6176,6 +6176,8 @@ in {
|
||||||
|
|
||||||
pyclimacell = callPackage ../development/python-modules/pyclimacell { };
|
pyclimacell = callPackage ../development/python-modules/pyclimacell { };
|
||||||
|
|
||||||
|
pyclip = callPackage ../development/python-modules/pyclip { };
|
||||||
|
|
||||||
pyclipper = callPackage ../development/python-modules/pyclipper { };
|
pyclipper = callPackage ../development/python-modules/pyclipper { };
|
||||||
|
|
||||||
pycm = callPackage ../development/python-modules/pycm { };
|
pycm = callPackage ../development/python-modules/pycm { };
|
||||||
|
|
Loading…
Reference in a new issue