about summary refs log tree commit diff
path: root/pkgs/development/python-modules
diff options
context:
space:
mode:
authorSpencer Baugh <sbaugh@catern.com>2018-10-07 21:54:34 +0000
committerFrederik Rietdijk <freddyrietdijk@fridh.nl>2018-10-13 10:13:03 +0200
commitfd9d45c7c146c6b7dc59f9ab950cac00ccb1ae1d (patch)
tree50f9848b20ae24a18fd60d9aeaa4ee29343fe3c6 /pkgs/development/python-modules
parent4ed993367f085b8881e71cb86ed1e31800d62279 (diff)
downloadnixlib-fd9d45c7c146c6b7dc59f9ab950cac00ccb1ae1d.tar
nixlib-fd9d45c7c146c6b7dc59f9ab950cac00ccb1ae1d.tar.gz
nixlib-fd9d45c7c146c6b7dc59f9ab950cac00ccb1ae1d.tar.bz2
nixlib-fd9d45c7c146c6b7dc59f9ab950cac00ccb1ae1d.tar.lz
nixlib-fd9d45c7c146c6b7dc59f9ab950cac00ccb1ae1d.tar.xz
nixlib-fd9d45c7c146c6b7dc59f9ab950cac00ccb1ae1d.tar.zst
nixlib-fd9d45c7c146c6b7dc59f9ab950cac00ccb1ae1d.zip
pythonPackages.mypy_extensions: use typing from stdlib on >=3.5
It's not necessary to depend on the "typing" backport since it's in
the standard library; I also observed serious breakage in anything
using the typing module (including) when the backport was in the
closure on >=3.5.
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r--pkgs/development/python-modules/mypy/extensions.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/development/python-modules/mypy/extensions.nix b/pkgs/development/python-modules/mypy/extensions.nix
index f57ac12c0da8..36407fd684ae 100644
--- a/pkgs/development/python-modules/mypy/extensions.nix
+++ b/pkgs/development/python-modules/mypy/extensions.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchPypi, buildPythonPackage, typing, isPy3k }:
+{ stdenv, fetchPypi, buildPythonPackage, typing, pythonOlder }:
 
 buildPythonPackage rec {
   pname = "mypy_extensions";
@@ -12,7 +12,7 @@ buildPythonPackage rec {
     sha256 = "04h8brrbbx151dfa2cvvlnxgmb5wa00mhd2z7nd20s8kyibfkq1p";
   };
 
-  propagatedBuildInputs = [ typing ];
+  propagatedBuildInputs = if pythonOlder "3.5" then [ typing ] else [ ];
 
   meta = with stdenv.lib; {
     description = "Experimental type system extensions for programs checked with the mypy typechecker";