nixpkgs/pkgs/development/python-modules/pyperclip/default.nix
adisbladis 02dab4ab5c python3.pkgs.*: Explicitly pass buildPythonPackage format parameter
Long term we should move everything over to `pyproject = true`, but in
the mean time we can work towards deprecating the implicit `format` paremeter.

cc https://github.com/NixOS/nixpkgs/issues/253154
cc @mweinelt @figsoda
2023-12-07 17:46:49 +01:00

33 lines
695 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, stdenv
, python
}:
buildPythonPackage rec {
version = "1.8.2";
format = "setuptools";
pname = "pyperclip";
src = fetchPypi {
inherit pname version;
sha256 = "105254a8b04934f0bc84e9c24eb360a591aaf6535c9def5f29d92af107a9bf57";
};
# No such file or directory: 'pbcopy'
doCheck = !stdenv.isDarwin;
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 ];
};
}