depot/third_party/nixpkgs/pkgs/by-name/cu/cups-printers/package.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

48 lines
989 B
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
];
# 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";
};
}