1{ lib
2, buildPythonPackage
3, fetchPypi
4, stdenv
5, python
6}:
7
8buildPythonPackage rec {
9 version = "1.8.2";
10 pname = "pyperclip";
11
12 src = fetchPypi {
13 inherit pname version;
14 sha256 = "105254a8b04934f0bc84e9c24eb360a591aaf6535c9def5f29d92af107a9bf57";
15 };
16
17 # No such file or directory: 'pbcopy'
18 doCheck = !stdenv.isDarwin;
19
20 checkPhase = ''
21 ${python.interpreter} tests/test_pyperclip.py
22 '';
23
24 pythonImportsCheck = [ "pyperclip" ];
25
26 meta = with lib; {
27 homepage = "https://github.com/asweigart/pyperclip";
28 license = licenses.bsd3;
29 description = "Cross-platform clipboard module";
30 maintainers = with maintainers; [ dotlambda ];
31 };
32}