nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 43 lines 834 B view raw
1{ 2 lib, 3 python3, 4 fetchFromGitHub, 5}: 6 7python3.pkgs.buildPythonApplication rec { 8 pname = "rstfmt"; 9 version = "0.0.14"; 10 pyproject = true; 11 12 src = fetchFromGitHub { 13 owner = "dzhu"; 14 repo = "rstfmt"; 15 tag = "v${version}"; 16 hash = "sha256-zvmKgNzfxyWYHoaD+q84I48r1Mpp4kU4oIGAwMSRRlA="; 17 }; 18 19 build-system = with python3.pkgs; [ 20 setuptools 21 ]; 22 23 dependencies = with python3.pkgs; [ 24 black 25 docutils 26 sphinx 27 ]; 28 29 # Project has no unittest just sample files 30 doCheck = false; 31 32 pythonImportsCheck = [ 33 "rstfmt" 34 ]; 35 36 meta = { 37 description = "Formatter for reStructuredText"; 38 homepage = "https://github.com/dzhu/rstfmt"; 39 changelog = "https://github.com/dzhu/rstfmt/releases/tag/v${version}"; 40 license = lib.licenses.mit; 41 maintainers = with lib.maintainers; [ fab ]; 42 }; 43}