depot/third_party/nixpkgs/pkgs/development/python-modules/pytest-black/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

27 lines
610 B
Nix

{ lib, buildPythonPackage, fetchPypi
, black
, pytest
, setuptools_scm
, toml
}:
buildPythonPackage rec {
pname = "pytest-black";
version = "0.3.8";
src = fetchPypi {
inherit pname version;
sha256 = "04lppqydxm0f3f3x0l8hj7v0j6d8syj34jc37yzqwqcyqsnaga81";
};
nativeBuildInputs = [ setuptools_scm ];
propagatedBuildInputs = [ black pytest toml ];
meta = with lib; {
description = "A pytest plugin to enable format checking with black";
homepage = "https://github.com/shopkeep/pytest-black";
license = licenses.mit;
maintainers = with maintainers; [ jonringer ];
};
}