summary refs log tree commit diff
path: root/pkgs/development/python-modules/pytest-black
diff options
context:
space:
mode:
authorKai Wohlfahrt <kai.wohlfahrt@gmail.com>2019-11-09 10:24:18 +0000
committerJon <jonringer@users.noreply.github.com>2019-11-09 11:04:28 -0800
commita4f0c51c0c96fe6dafcc646101710abf74d497c9 (patch)
tree95bf112bb621a549533e0d93d030afb0659e7a36 /pkgs/development/python-modules/pytest-black
parentd602c56f475f270f4a8a3fde3060136181e9012f (diff)
downloadnixpkgs-a4f0c51c0c96fe6dafcc646101710abf74d497c9.tar
nixpkgs-a4f0c51c0c96fe6dafcc646101710abf74d497c9.tar.gz
nixpkgs-a4f0c51c0c96fe6dafcc646101710abf74d497c9.tar.bz2
nixpkgs-a4f0c51c0c96fe6dafcc646101710abf74d497c9.tar.lz
nixpkgs-a4f0c51c0c96fe6dafcc646101710abf74d497c9.tar.xz
nixpkgs-a4f0c51c0c96fe6dafcc646101710abf74d497c9.tar.zst
nixpkgs-a4f0c51c0c96fe6dafcc646101710abf74d497c9.zip
pytest-black: patch black dependency
This change is pending upstream in #29, but it is stale.
Diffstat (limited to 'pkgs/development/python-modules/pytest-black')
-rw-r--r--pkgs/development/python-modules/pytest-black/black-version.patch13
-rw-r--r--pkgs/development/python-modules/pytest-black/default.nix1
2 files changed, 14 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pytest-black/black-version.patch b/pkgs/development/python-modules/pytest-black/black-version.patch
new file mode 100644
index 00000000000..93bb4180930
--- /dev/null
+++ b/pkgs/development/python-modules/pytest-black/black-version.patch
@@ -0,0 +1,13 @@
+diff --git a/setup.py b/setup.py
+index 5c9ce5f..84b148a 100644
+--- a/setup.py
++++ b/setup.py
+@@ -26,6 +26,6 @@ setup(
+     python_requires=">=2.7",
+     install_requires=[
+         "pytest>=3.5.0",
+-        'black==19.3b0; python_version >= "3.6"',
++        'black; python_version >= "3.6"',
+         "toml",
+     ],
+     use_scm_version=True,
\ No newline at end of file
diff --git a/pkgs/development/python-modules/pytest-black/default.nix b/pkgs/development/python-modules/pytest-black/default.nix
index 508dbdf0863..b129f9eec4b 100644
--- a/pkgs/development/python-modules/pytest-black/default.nix
+++ b/pkgs/development/python-modules/pytest-black/default.nix
@@ -14,6 +14,7 @@ buildPythonPackage rec {
     sha256 = "03gwwy1h3qnfh6vpfhgsa5ag53a9sw1g42sc2s8a2hilwb7yrfvm";
   };
 
+  patches = [ ./black-version.patch ];
   nativeBuildInputs = [ setuptools_scm ];
 
   propagatedBuildInputs = [ black pytest toml ];