depot/third_party/nixpkgs/pkgs/development/python-modules/pycups/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

23 lines
572 B
Nix

{ stdenv, lib, buildPythonPackage, fetchPypi, cups, libiconv }:
buildPythonPackage rec {
pname = "pycups";
version = "2.0.1";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-V0NM5fYlSOsSlJyoIX8Gb07rIaXWq4sTRx3ONQ44DJA=";
};
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 ];
};
}