pythonPackages.libcst: fix recursion
This commit is contained in:
parent
eee29699f3
commit
92b80805df
@ -3,7 +3,6 @@
|
|||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
, hypothesis
|
, hypothesis
|
||||||
, doCheck ? true
|
|
||||||
, dataclasses
|
, dataclasses
|
||||||
, hypothesmith
|
, hypothesmith
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
@ -29,12 +28,13 @@ buildPythonPackage rec {
|
|||||||
|
|
||||||
disabled = pythonOlder "3.6";
|
disabled = pythonOlder "3.6";
|
||||||
|
|
||||||
propagatedBuildInputs = [ hypothesis typing-inspect pyyaml ]
|
propagatedBuildInputs = [ hypothesis typing-extensions typing-inspect pyyaml ]
|
||||||
++ lib.optional (pythonOlder "3.7") dataclasses;
|
++ lib.optional (pythonOlder "3.7") dataclasses;
|
||||||
|
|
||||||
checkInputs = [ black hypothesmith isort pytestCheckHook ];
|
checkInputs = [ black hypothesmith isort pytestCheckHook ];
|
||||||
|
|
||||||
inherit doCheck;
|
# can't run tests due to circular dependency on hypothesmith -> licst
|
||||||
|
doCheck = false;
|
||||||
|
|
||||||
preCheck = ''
|
preCheck = ''
|
||||||
python -m libcst.codegen.generate visitors
|
python -m libcst.codegen.generate visitors
|
||||||
@ -44,8 +44,7 @@ buildPythonPackage rec {
|
|||||||
pythonImportsCheck = [ "libcst" ];
|
pythonImportsCheck = [ "libcst" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description =
|
description = "A Concrete Syntax Tree (CST) parser and serializer library for Python.";
|
||||||
"A Concrete Syntax Tree (CST) parser and serializer library for Python.";
|
|
||||||
homepage = "https://github.com/Instagram/libcst";
|
homepage = "https://github.com/Instagram/libcst";
|
||||||
license = with licenses; [ mit asl20 psfl ];
|
license = with licenses; [ mit asl20 psfl ];
|
||||||
maintainers = with maintainers; [ ruuda SuperSandro2000 ];
|
maintainers = with maintainers; [ ruuda SuperSandro2000 ];
|
||||||
|
@ -3137,9 +3137,7 @@ in {
|
|||||||
|
|
||||||
hypothesis = if isPy3k then callPackage ../development/python-modules/hypothesis { } else self.hypothesis_4;
|
hypothesis = if isPy3k then callPackage ../development/python-modules/hypothesis { } else self.hypothesis_4;
|
||||||
|
|
||||||
hypothesmith = callPackage ../development/python-modules/hypothesmith {
|
hypothesmith = callPackage ../development/python-modules/hypothesmith { };
|
||||||
libcst = self.libcst.override { doCheck = false; };
|
|
||||||
};
|
|
||||||
|
|
||||||
hyppo = callPackage ../development/python-modules/hyppo { };
|
hyppo = callPackage ../development/python-modules/hyppo { };
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user