rstfmt: init at 0.0.13
This commit is contained in:
parent
fe2ecaf706
commit
559e1cae34
37
pkgs/development/tools/rstfmt/default.nix
Normal file
37
pkgs/development/tools/rstfmt/default.nix
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
{ 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 ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -11649,6 +11649,8 @@ with pkgs;
|
||||||
|
|
||||||
rstcheck = with python3Packages; toPythonApplication rstcheck;
|
rstcheck = with python3Packages; toPythonApplication rstcheck;
|
||||||
|
|
||||||
|
rstfmt = callPackage ../development/tools/rstfmt { };
|
||||||
|
|
||||||
rt = callPackage ../servers/rt { };
|
rt = callPackage ../servers/rt { };
|
||||||
|
|
||||||
rtmpdump = callPackage ../tools/video/rtmpdump { };
|
rtmpdump = callPackage ../tools/video/rtmpdump { };
|
||||||
|
|
Loading…
Reference in a new issue