python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / tools / beautysh / default.nix
blobf01857fc608629146e49086a0459d919bc15054d
1 { lib
2 , fetchFromGitHub
3 , python3
4 }:
6 python3.pkgs.buildPythonApplication rec {
7   pname = "beautysh";
8   version = "6.2.1";
9   format = "pyproject";
12   src = fetchFromGitHub {
13     owner = "lovesegfault";
14     repo = pname;
15     rev = "v${version}";
16     hash = "sha256-rPeGRcyNK45Y7OvtzaIH93IIzexBf/jM1SzYP0phQ1o=";
17   };
19   nativeBuildInputs = with python3.pkgs; [
20     poetry-core
21   ];
23   propagatedBuildInputs = with python3.pkgs; [
24     colorama
25     setuptools
26     types-colorama
27     types-setuptools
28   ];
30   checkInputs = with python3.pkgs; [
31     pytestCheckHook
32   ];
34   postPatch = ''
35     substituteInPlace pyproject.toml \
36       --replace 'types-setuptools = "^57.4.0"' 'types-setuptools = "*"'
37   '';
39   pythonImportsCheck = [
40     "beautysh"
41   ];
43   meta = with lib; {
44     description = "Tool for beautifying Bash scripts";
45     homepage = "https://github.com/lovesegfault/beautysh";
46     license = with licenses; [ asl20 ];
47     maintainers = with maintainers; [ fab ];
48   };