Files
nixpkgs/pkgs/development/python-modules/pyperclip/default.nix
2025-09-19 06:41:47 -07:00

37 lines
724 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
python,
setuptools,
}:
buildPythonPackage rec {
version = "1.10.0";
pname = "pyperclip";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-GAyDRrEYaSHHXf0U2QSKa11Gv8SZd4gRlSxt1uscpr4=";
};
build-system = [ setuptools ];
# https://github.com/asweigart/pyperclip/issues/263
doCheck = false;
checkPhase = ''
${python.interpreter} tests/test_pyperclip.py
'';
pythonImportsCheck = [ "pyperclip" ];
meta = with lib; {
homepage = "https://github.com/asweigart/pyperclip";
license = licenses.bsd3;
description = "Cross-platform clipboard module";
maintainers = with maintainers; [ dotlambda ];
};
}