mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
37 lines
723 B
Nix
37 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 ];
|
|
};
|
|
}
|