depot/third_party/nixpkgs/pkgs/by-name/cu/cups-printers/package.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

49 lines
1 KiB
Nix

{
lib,
fetchFromGitHub,
python3,
}:
python3.pkgs.buildPythonApplication rec {
pname = "cups-printers";
version = "1.0.0";
pyproject = true;
src = fetchFromGitHub {
owner = "audiusGmbH";
repo = "cups-printers";
rev = "refs/tags/${version}";
hash = "sha256-HTR9t9ElQmCzJfdWyu+JQ8xBfDNpXl8XtNsJxGSfBXk=";
};
pythonRelaxDeps = [
"typer"
"validators"
];
build-system = with python3.pkgs; [ poetry-core ];
dependencies =
with python3.pkgs;
[
pycups
typer
validators
]
++ typer.optional-dependencies.all;
# Project has no tests
doCheck = false;
pythonImportsCheck = [ "cups_printers" ];
meta = with lib; {
description = "Tool for interacting with a CUPS server";
homepage = "https://github.com/audiusGmbH/cups-printers";
changelog = "https://github.com/audiusGmbH/cups-printers/blob/${version}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
mainProgram = "cups-printers";
};
}