3
0
Fork 0
forked from mirrors/nixpkgs

libcst: fix python 3.6 support

The 'dataclasses' module is a required dependency of libcst.
Python >= 3.7 include this module natively.
This commit is contained in:
Daniel Edgecumbe 2021-01-04 17:03:58 +00:00 committed by Frederik Rietdijk
parent 0946f962f4
commit d347164e04

View file

@ -1,5 +1,5 @@
{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder, black, isort
, pytestCheckHook, pyyaml, typing-extensions, typing-inspect }:
, pytestCheckHook, pyyaml, typing-extensions, typing-inspect, dataclasses }:
buildPythonPackage rec {
pname = "libcst";
@ -16,7 +16,8 @@ buildPythonPackage rec {
disabled = pythonOlder "3.6";
propagatedBuildInputs = [ pyyaml typing-inspect ];
propagatedBuildInputs = [ pyyaml typing-inspect ]
++ lib.optional (pythonOlder "3.7") dataclasses;
checkInputs = [ black isort pytestCheckHook ];