Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 45 lines 955 B view raw
1{ 2 lib, 3 fetchFromGitHub, 4 python3, 5}: 6 7python3.pkgs.buildPythonApplication rec { 8 pname = "cups-printers"; 9 version = "1.0.0"; 10 pyproject = true; 11 12 src = fetchFromGitHub { 13 owner = "audiusGmbH"; 14 repo = "cups-printers"; 15 tag = version; 16 hash = "sha256-HTR9t9ElQmCzJfdWyu+JQ8xBfDNpXl8XtNsJxGSfBXk="; 17 }; 18 19 pythonRelaxDeps = [ 20 "typer" 21 "validators" 22 ]; 23 24 build-system = with python3.pkgs; [ poetry-core ]; 25 26 dependencies = with python3.pkgs; [ 27 pycups 28 typer 29 validators 30 ]; 31 32 # Project has no tests 33 doCheck = false; 34 35 pythonImportsCheck = [ "cups_printers" ]; 36 37 meta = { 38 description = "Tool for interacting with a CUPS server"; 39 homepage = "https://github.com/audiusGmbH/cups-printers"; 40 changelog = "https://github.com/audiusGmbH/cups-printers/blob/${version}/CHANGELOG.md"; 41 license = lib.licenses.mit; 42 maintainers = with lib.maintainers; [ fab ]; 43 mainProgram = "cups-printers"; 44 }; 45}