at master 598 B view raw
1{ 2 stdenv, 3 lib, 4 buildPythonPackage, 5 fetchPypi, 6 cups, 7 libiconv, 8}: 9 10buildPythonPackage rec { 11 pname = "pycups"; 12 version = "2.0.4"; 13 format = "setuptools"; 14 15 src = fetchPypi { 16 inherit pname version; 17 hash = "sha256-hD44XB2/aUmWyoTvAqfzDCg3YDVYj1++rNa64AXPfI0="; 18 }; 19 20 buildInputs = [ cups ] ++ lib.optional stdenv.hostPlatform.isDarwin libiconv; 21 22 # Wants to connect to CUPS 23 doCheck = false; 24 25 meta = with lib; { 26 description = "Python bindings for libcups"; 27 homepage = "http://cyberelk.net/tim/software/pycups/"; 28 license = with licenses; [ gpl2Plus ]; 29 }; 30}