depot/third_party/nixpkgs/pkgs/development/python-modules/pycups/default.nix
Default email 7e47f3658e Project import generated by Copybara.
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
2024-09-26 11:04:55 +00:00

30 lines
598 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.hostPlatform.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 ];
};
}