mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-14 14:10:33 +03:00
python3Packages.pyperclip: run tests
This commit is contained in:
parent
d5db292192
commit
c1d88dd0e6
1 changed files with 15 additions and 2 deletions
|
@ -1,4 +1,9 @@
|
|||
{ lib, buildPythonPackage, fetchPypi }:
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, stdenv
|
||||
, python
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "1.8.2";
|
||||
|
@ -9,11 +14,19 @@ buildPythonPackage rec {
|
|||
sha256 = "105254a8b04934f0bc84e9c24eb360a591aaf6535c9def5f29d92af107a9bf57";
|
||||
};
|
||||
|
||||
doCheck = false;
|
||||
# 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 ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue