depot/third_party/nixpkgs/pkgs/development/python-modules/pyperclip/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

36 lines
723 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
python,
setuptools,
}:
buildPythonPackage rec {
version = "1.9.0";
pname = "pyperclip";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-t94BQt3IG/xcdQfuoZ2pILkiUrVIuWGGyvlKXiUn0xA=";
};
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 ];
};
}