mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 23:54:01 +00:00
38 lines
722 B
Nix
38 lines
722 B
Nix
{ lib
|
|
, python3
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "rstfmt";
|
|
version = "0.0.13";
|
|
format = "pyproject";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dzhu";
|
|
repo = "rstfmt";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-SJRA14CfoT8XMt3hMB7cLdmuLwsJnBSwhKkD1pJvQCI=";
|
|
};
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
black
|
|
docutils
|
|
sphinx
|
|
];
|
|
|
|
# Project has no unittest just sample files
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
"rstfmt"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "A formatter for reStructuredText";
|
|
homepage = "https://github.com/dzhu/rstfmt";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|