mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-15 13:37:21 +03:00
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
|
||||
, 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 ];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user