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