Skip to content

Commit

Permalink
Merge pull request #313751 from Moraxyc/fix-tableaudocumentapi
Browse files Browse the repository at this point in the history
python312Packages.tableaudocumentapi: fix build
  • Loading branch information
risicle committed May 22, 2024
2 parents 9d01518 + 01b7348 commit a99f309
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions pkgs/development/python-modules/tableaudocumentapi/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,34 @@
lxml,
pytestCheckHook,
pythonOlder,
fetchpatch,
setuptools,
}:

buildPythonPackage rec {
pname = "tableaudocumentapi";
version = "0.11";
format = "setuptools";

pyproject = true;
build-system = [ setuptools ];

disabled = pythonOlder "3.7";

src = fetchPypi {
inherit pname version;
hash = "sha256-g6V1UBf+P21FcZkR3PHoUmdmrQwEvjdd1VKhvNmvOys=";
};

propagatedBuildInputs = [ lxml ];
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=";
})
];

dependencies = [ lxml ];

nativeCheckInputs = [ pytestCheckHook ];

Expand Down

0 comments on commit a99f309

Please sign in to comment.