nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 46 lines 933 B view raw
1{ 2 lib, 3 python3, 4 fetchFromGitHub, 5}: 6 7python3.pkgs.buildPythonApplication rec { 8 pname = "typstwriter"; 9 version = "0.3"; 10 pyproject = true; 11 12 src = fetchFromGitHub { 13 owner = "Bzero"; 14 repo = "typstwriter"; 15 tag = "V${version}"; 16 hash = "sha256-0tCl/dMSWmUWZEVystb6BIYTwW7b6PH4LyERK4mi/LQ="; 17 }; 18 19 build-system = [ python3.pkgs.flit-core ]; 20 21 dependencies = with python3.pkgs; [ 22 platformdirs 23 pygments 24 pyside6 25 qtpy 26 superqt 27 ]; 28 29 optional-dependencies = with python3.pkgs; { 30 tests = [ 31 pytest 32 pytest-qt 33 ]; 34 }; 35 36 pythonImportsCheck = [ "typstwriter" ]; 37 38 meta = { 39 changelog = "https://github.com/Bzero/typstwriter/releases/tag/V${version}"; 40 description = "Integrated editor for the typst typesetting system"; 41 homepage = "https://github.com/Bzero/typstwriter"; 42 license = lib.licenses.mit; 43 mainProgram = "typstwriter"; 44 maintainers = [ ]; 45 }; 46}