python3Packages.libcst: fix build

This commit is contained in:
Jonathan Ringer
2021-11-30 18:52:53 -08:00
parent 3b0f66c2db
commit 0d420cc9cb
@@ -9,6 +9,7 @@
, python
, pythonOlder
, pyyaml
, setuptools-scm
, typing-extensions
, typing-inspect
}:
@@ -27,6 +28,18 @@ buildPythonPackage rec {
sha256 = "1r4aiqpndqa75119faknsghi7zxyjrx5r6i7cb3d0liwiqrkzrvx";
};
postPatch = ''
# test try to format files, which isn't necessary when consuming releases
sed -i libcst/codegen/generate.py \
-e '/ufmt/c\ pass'
'';
SETUPTOOLS_SCM_PRETEND_VERSION = version;
nativeBuildInputs = [
setuptools-scm
];
propagatedBuildInputs = [
hypothesis
typing-extensions