1{ stdenv, lib, buildPythonPackage, fetchPypi, cups, libiconv }:
2
3buildPythonPackage rec {
4 pname = "pycups";
5 version = "2.0.1";
6
7 src = fetchPypi {
8 inherit pname version;
9 hash = "sha256-V0NM5fYlSOsSlJyoIX8Gb07rIaXWq4sTRx3ONQ44DJA=";
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}