2023-08-22 20:05:09 +00:00
|
|
|
{ stdenv, lib, buildPythonPackage, fetchPypi, cups, libiconv }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pycups";
|
2023-08-22 20:05:09 +00:00
|
|
|
version = "2.0.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
hash = "sha256-V0NM5fYlSOsSlJyoIX8Gb07rIaXWq4sTRx3ONQ44DJA=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|