nixpkgs/pkgs/development/python-modules/pycups/default.nix
adisbladis 02dab4ab5c python3.pkgs.*: Explicitly pass buildPythonPackage format parameter
Long term we should move everything over to `pyproject = true`, but in
the mean time we can work towards deprecating the implicit `format` paremeter.

cc https://github.com/NixOS/nixpkgs/issues/253154
cc @mweinelt @figsoda
2023-12-07 17:46:49 +01:00

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