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

buildPythonPackage rec {
  pname = "pycups";
  version = "2.0.4";
  format = "setuptools";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-hD44XB2/aUmWyoTvAqfzDCg3YDVYj1++rNa64AXPfI0=";
  };

  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 ];
  };
}