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:
parent
0946f962f4
commit
d347164e04
@ -1,5 +1,5 @@
|
|||||||
{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder, black, isort
|
{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder, black, isort
|
||||||
, pytestCheckHook, pyyaml, typing-extensions, typing-inspect }:
|
, pytestCheckHook, pyyaml, typing-extensions, typing-inspect, dataclasses }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "libcst";
|
pname = "libcst";
|
||||||
@ -16,7 +16,8 @@ buildPythonPackage rec {
|
|||||||
|
|
||||||
disabled = pythonOlder "3.6";
|
disabled = pythonOlder "3.6";
|
||||||
|
|
||||||
propagatedBuildInputs = [ pyyaml typing-inspect ];
|
propagatedBuildInputs = [ pyyaml typing-inspect ]
|
||||||
|
++ lib.optional (pythonOlder "3.7") dataclasses;
|
||||||
|
|
||||||
checkInputs = [ black isort pytestCheckHook ];
|
checkInputs = [ black isort pytestCheckHook ];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user