python311Packages.autocommand: fix build

by dropping bogus setup.py.
This commit is contained in:
Martin Weinelt
2023-12-20 20:45:50 +01:00
parent 6460425484
commit 1f7541d797
@@ -1,6 +1,7 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools
, pytestCheckHook
, pythonOlder
}:
@@ -8,7 +9,7 @@
buildPythonPackage rec {
pname = "autocommand";
version = "2.2.2";
format = "setuptools";
pyproject = true;
disabled = pythonOlder "3.7";
@@ -19,6 +20,15 @@ buildPythonPackage rec {
hash = "sha256-9bv9Agj4RpeyNJvTLUaMwygQld2iZZkoLb81rkXOd3E=";
};
postPatch = ''
# _MissingDynamic: `license` defined outside of `pyproject.toml` is ignored.
rm setup.py
'';
nativeBuildInputs = [
setuptools
];
# fails with: SyntaxError: invalid syntax
doCheck = false;