depot/third_party/nixpkgs/pkgs/development/python-modules/pycups/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

30 lines
585 B
Nix

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