1{ stdenv, lib, buildPythonPackage, fetchurl, cups, libiconv }:
2
3buildPythonPackage rec {
4 pname = "pycups";
5 version = "1.9.73";
6
7 src = fetchurl {
8 url = "http://cyberelk.net/tim/data/pycups/pycups-${version}.tar.bz2";
9 sha256 = "c381be011889ca6f728598578c89c8ac9f7ab1e95b614474df9f2fa831ae5335";
10 };
11
12 buildInputs = [ cups ] ++ lib.optional stdenv.isDarwin libiconv;
13
14 # Wants to connect to CUPS
15 doCheck = false;
16
17 meta = with lib; {
18 description = "Python bindings for libcups";
19 homepage = "http://cyberelk.net/tim/software/pycups/";
20 license = with licenses; [ gpl2Plus ];
21 };
22}