2024-04-29 07:05:24 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
fetchFromGitHub,
|
|
|
|
python3,
|
2024-03-20 20:51:43 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
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 = [
|
2024-04-29 07:05:04 +00:00
|
|
|
"typer"
|
2024-03-20 20:51:43 +00:00
|
|
|
"validators"
|
|
|
|
];
|
|
|
|
|
2024-04-29 07:05:24 +00:00
|
|
|
build-system = with python3.pkgs; [ poetry-core ];
|
2024-04-29 07:04:40 +00:00
|
|
|
|
2024-03-20 20:51:43 +00:00
|
|
|
|
2024-04-29 07:05:24 +00:00
|
|
|
dependencies =
|
|
|
|
with python3.pkgs;
|
|
|
|
[
|
|
|
|
pycups
|
|
|
|
typer
|
|
|
|
validators
|
2024-07-07 09:52:13 +00:00
|
|
|
];
|
2024-03-20 20:51:43 +00:00
|
|
|
|
|
|
|
# Project has no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
2024-04-29 07:05:24 +00:00
|
|
|
pythonImportsCheck = [ "cups_printers" ];
|
2024-03-20 20:51:43 +00:00
|
|
|
|
|
|
|
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";
|
|
|
|
};
|
|
|
|
}
|