mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-08 08:24:10 +01:00
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
48 lines
1.2 KiB
Nix
48 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
lxml,
|
|
pytestCheckHook,
|
|
fetchpatch,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "tableaudocumentapi";
|
|
version = "0.11";
|
|
|
|
pyproject = true;
|
|
build-system = [ setuptools ];
|
|
|
|
src = fetchPypi {
|
|
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=";
|
|
})
|
|
];
|
|
|
|
dependencies = [ lxml ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "tableaudocumentapi" ];
|
|
|
|
# ModuleNotFoundError: No module named 'test.assets'
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
description = "Python module for working with Tableau files";
|
|
homepage = "https://github.com/tableau/document-api-python";
|
|
changelog = "https://github.com/tableau/document-api-python/releases/tag/v${version}";
|
|
license = lib.licenses.mit;
|
|
maintainers = [ ];
|
|
};
|
|
}
|