Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / black-macchiato / default.nix
blob5a7c20e3c43e97b9b835cfd7501ad8e826091ebb
1 { lib,
2   buildPythonPackage,
3   fetchFromGitHub,
4   pythonOlder,
5   pytestCheckHook,
6   black
7 }:
9 buildPythonPackage rec {
10   pname = "black-macchiato";
11   version = "1.3.0";
13   disabled = pythonOlder "3.6";
15   src = fetchFromGitHub {
16     owner  = "wbolster";
17     repo   = pname;
18     rev    = version;
19     sha256 = "0lc9w50nlbmlzj44krk7kxcia202fhybbnwfh77xixlc7vb4rayl";
20   };
22   propagatedBuildInputs = [ black ];
24   nativeCheckInputs = [ pytestCheckHook black ];
26   pythonImportsCheck = [ "black" ];
28   meta = with lib; {
29     description = "This is a small utility built on top of the black Python code formatter to enable formatting of partial files";
30     homepage    = "https://github.com/wbolster/black-macchiato";
31     license     = licenses.bsd3;
32     maintainers = with maintainers; [ jperras ];
33   };