about summary refs log tree commit diff
path: root/pkgs/development/python-modules/pytest-black
diff options
context:
space:
mode:
authorJonathan Ringer <jonringer117@gmail.com>2019-10-26 14:53:27 -0700
committerFrederik Rietdijk <fridh@fridh.nl>2019-10-27 16:26:56 +0100
commit3b4bdf3f385f5f849031067e4521d64b1ffb0cba (patch)
treec3252e51d29b32d601338c7e28006220f4b7a984 /pkgs/development/python-modules/pytest-black
parent48091cc04350928d22548f43b1901179a4fb1917 (diff)
python3Packages.pytest-black: init at 0.3.7
Diffstat (limited to 'pkgs/development/python-modules/pytest-black')
-rw-r--r--pkgs/development/python-modules/pytest-black/default.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pytest-black/default.nix b/pkgs/development/python-modules/pytest-black/default.nix
new file mode 100644
index 0000000000000..508dbdf0863c9
--- /dev/null
+++ b/pkgs/development/python-modules/pytest-black/default.nix
@@ -0,0 +1,27 @@
+{ lib, buildPythonPackage, fetchPypi
+, black
+, pytest
+, setuptools_scm
+, toml
+}:
+
+buildPythonPackage rec {
+  pname = "pytest-black";
+  version = "0.3.7";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "03gwwy1h3qnfh6vpfhgsa5ag53a9sw1g42sc2s8a2hilwb7yrfvm";
+  };
+
+  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 ];
+  };
+}