python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / tools / nix / alejandra / default.nix
blob73f114d96ef9dc27ce55c93282a6e206b24e3c68
1 { lib
2 , rustPlatform
3 , fetchFromGitHub
4 , testers
5 , alejandra
6 }:
8 rustPlatform.buildRustPackage rec {
9   pname = "alejandra";
10   version = "3.0.0";
12   src = fetchFromGitHub {
13     owner = "kamadorueda";
14     repo = "alejandra";
15     rev = version;
16     sha256 = "sha256-xFumnivtVwu5fFBOrTxrv6fv3geHKF04RGP23EsDVaI=";
17   };
19   cargoSha256 = "sha256-tF8E9mnvkTXoViVss9cNjpU4UkEsARp4RtlxKWq55hc=";
21   passthru.tests = {
22     version = testers.testVersion { package = alejandra; };
23   };
25   meta = with lib; {
26     description = "The Uncompromising Nix Code Formatter";
27     homepage = "https://github.com/kamadorueda/alejandra";
28     changelog = "https://github.com/kamadorueda/alejandra/blob/${version}/CHANGELOG.md";
29     license = licenses.unlicense;
30     maintainers = with maintainers; [ _0x4A6F kamadorueda sciencentistguy ];
31   };