summary refs log tree commit diff
path: root/pkgs/development/python-modules/pycups/default.nix
blob: 28dff352e389fdfefa3ca376fd7d3713d8f6f2ea (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ stdenv, lib, buildPythonPackage, fetchurl, cups, libiconv }:

buildPythonPackage rec {
  pname = "pycups";
  version = "1.9.73";

  src = fetchurl {
    url = "http://cyberelk.net/tim/data/pycups/pycups-${version}.tar.bz2";
    sha256 = "c381be011889ca6f728598578c89c8ac9f7ab1e95b614474df9f2fa831ae5335";
  };

  buildInputs = [ cups ] ++ lib.optional stdenv.isDarwin libiconv;

  # Wants to connect to CUPS
  doCheck = false;

  meta = with lib; {
    description = "Python bindings for libcups";
    homepage = http://cyberelk.net/tim/software/pycups/;
    license = with licenses; [ gpl2Plus ];
  };
}