mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 08:13:04 +00:00
python312Packages.tableaudocumentapi: fix build
(cherry picked from commit 01b734834e
)
This commit is contained in:
parent
1a7abfa62e
commit
55639616c1
@ -5,12 +5,16 @@
|
||||
lxml,
|
||||
pytestCheckHook,
|
||||
pythonOlder,
|
||||
fetchpatch,
|
||||
setuptools,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "tableaudocumentapi";
|
||||
version = "0.11";
|
||||
format = "setuptools";
|
||||
|
||||
pyproject = true;
|
||||
build-system = [ setuptools ];
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
@ -18,8 +22,17 @@ buildPythonPackage rec {
|
||||
inherit pname version;
|
||||
hash = "sha256-g6V1UBf+P21FcZkR3PHoUmdmrQwEvjdd1VKhvNmvOys=";
|
||||
};
|
||||
patches = [
|
||||
# distutils has been removed since python 3.12
|
||||
# see https://github.com/tableau/document-api-python/pull/255
|
||||
(fetchpatch {
|
||||
name = "no-distutils.patch";
|
||||
url = "https://github.com/tableau/document-api-python/pull/255/commits/59280bbe073060d1249e6404e11303ed6faa84f6.patch";
|
||||
hash = "sha256-mjIF9iP1BQXvqkS0jYNTm8otkhSKLj2b2iHSMZ2K0iI=";
|
||||
})
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [ lxml ];
|
||||
dependencies = [ lxml ];
|
||||
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user