-
-
Notifications
You must be signed in to change notification settings - Fork 15k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
python312Packages.copykitten: init at 1.2.3 (#368748)
- Loading branch information
Showing
2 changed files
with
53 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,51 @@ | ||
{ | ||
fetchFromGitHub, | ||
buildPythonPackage, | ||
rustPlatform, | ||
lib, | ||
pillow, | ||
}: | ||
|
||
buildPythonPackage rec { | ||
pname = "copykitten"; | ||
version = "1.2.3"; | ||
pyproject = true; | ||
|
||
src = fetchFromGitHub { | ||
owner = "Klavionik"; | ||
repo = "copykitten"; | ||
tag = "v${version}"; | ||
hash = "sha256-S4IPVhYk/o15LQK1AB8VpdrHwIwTZyvmI2+e27/vDLs="; | ||
}; | ||
|
||
cargoDeps = rustPlatform.fetchCargoTarball { | ||
inherit src; | ||
hash = "sha256-Qgg2S1nRwWs2O81huj1g4wq7v4G377T+V8/1rjhz1ZE="; | ||
}; | ||
|
||
build-system = [ | ||
rustPlatform.cargoSetupHook | ||
rustPlatform.maturinBuildHook | ||
]; | ||
|
||
dependencies = [ | ||
pillow | ||
]; | ||
|
||
# The tests get/set the contents of the clipboard by running subprocesses. | ||
# On Darwin, the tests try to use `pbcopy`/`pbpaste`, which aren't packaged in Nix. | ||
# On Linux, I tried adding `xclip` to `nativeCheckInputs`, but got errors about | ||
# displays being null and the clipboard never being initialized. | ||
doCheck = false; | ||
|
||
pythonImportsCheck = [ "copykitten" ]; | ||
|
||
meta = { | ||
description = "Robust, dependency-free way to use the system clipboard in Python"; | ||
homepage = "https://github.com/Klavionik/copykitten"; | ||
changelog = "https://github.com/Klavionik/copykitten/blob/v${version}/CHANGELOG.md"; | ||
license = lib.licenses.mit; | ||
maintainers = [ lib.maintainers.samasaur ]; | ||
platforms = lib.platforms.all; | ||
}; | ||
} |
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