1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 setuptools,
7}:
8
9buildPythonPackage {
10 version = "1.9.4-unstable-2024-01-23";
11 pname = "pyperclipfix";
12 pyproject = true;
13
14 src = fetchFromGitHub {
15 owner = "AuroraWright";
16 repo = "pyperclipfix";
17 rev = "8c6c61de35b44ddbc927b37ade5579825db40826"; # no tags
18 hash = "sha256-sREtSNEMj0Q+XWQsJu/7u9M1UdiocDq/YkrCPGRLhHA=";
19 };
20
21 build-system = [ setuptools ];
22
23 nativeCheckInputs = [ pytestCheckHook ];
24
25 preCheck = ''
26 substituteInPlace tests/test_pyperclip.py \
27 --replace-fail "pyperclip" "pyperclipfix"
28 '';
29
30 pythonImportsCheck = [ "pyperclipfix" ];
31
32 # test file is trying to import pyperclip
33 doCheck = false;
34
35 meta = {
36 homepage = "https://github.com/AuroraWright/pyperclipfix";
37 license = lib.licenses.bsd3;
38 description = "Cross-platform clipboard module with various fixes";
39 maintainers = with lib.maintainers; [ sigmanificient ];
40 };
41}