Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / mdformat-beautysh / default.nix
bloba117fea936eb4c9146ace3b20f6a285500f9dabb
1 { lib
2 , beautysh
3 , buildPythonPackage
4 , fetchFromGitHub
5 , mdformat
6 , mdformat-gfm
7 , mdit-py-plugins
8 , poetry-core
9 , pytestCheckHook
10 , pythonOlder
13 buildPythonPackage rec {
14   pname = "mdformat-beautysh";
15   version = "0.1.1";
16   format = "pyproject";
18   disabled = pythonOlder "3.7";
20   src = fetchFromGitHub {
21     owner = "hukkin";
22     repo = pname;
23     rev = "refs/tags/${version}";
24     hash = "sha256-mH9PN6QsPmnIzh/0vxa+5mYLzANUHRruXC0ql4h8myw=";
25   };
27   nativeBuildInputs = [
28     poetry-core
29   ];
31   buildInputs = [
32     mdformat
33     mdformat-gfm
34     mdit-py-plugins
35   ];
37   propagatedBuildInputs = [
38     beautysh
39   ];
41   nativeCheckInputs = [
42     pytestCheckHook
43   ];
45   pythonImportsCheck = [
46     "mdformat_beautysh"
47   ];
49   meta = with lib; {
50     description = "Mdformat plugin to beautify Bash scripts";
51     homepage = "https://github.com/hukkin/mdformat-beautysh";
52     license = licenses.mit;
53     maintainers = with maintainers; [ aldoborrero ];
54   };