summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch
diff options
context:
space:
mode:
authorSilvan Mosberger <contact@infinisil.com>2021-06-25 14:39:59 +0200
committerSilvan Mosberger <contact@infinisil.com>2021-06-25 14:39:59 +0200
commit33ffb05d390987802fe939f9c9a3d6a451076535 (patch)
treec871c34ba7d07b656e6a1985f5ba1b17e4d02fd5 /pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch
parent370a10c27fc13f2b70dfee2284b30d6989b4336b (diff)
writers: Allow string paths
Before this change, it was not possible to use string paths, because then the `types.str.check` would succeed. So the only paths that could be used were ones from the local filesystem via e.g. `./some/path`. We can easily fix this by using `types.path.check` instead to determine whether we are dealing with a path. This notably also allows using Nix-fetched sources as the content, e.g. `fetchFromGitHub { ... } + "/some/file"`
Diffstat (limited to 'pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch')
0 files changed, 0 insertions, 0 deletions