Files
nixpkgs/pkgs/development/python-modules/awesome-slugify/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

44 lines
856 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
unidecode,
regex,
unittestCheckHook,
}:
buildPythonPackage rec {
pname = "awesome-slugify";
version = "1.6.5";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "0wgxrhr8s5vk2xmcz9s1z1aml4ppawmhkbggl9rp94c747xc7pmv";
};
prePatch = ''
substituteInPlace setup.py \
--replace 'Unidecode>=0.04.14,<0.05' 'Unidecode>=0.04.14'
'';
patches = [
./slugify_filename_test.patch # fixes broken test by new unidecode
];
propagatedBuildInputs = [
unidecode
regex
];
nativeCheckInputs = [ unittestCheckHook ];
meta = {
homepage = "https://github.com/dimka665/awesome-slugify";
description = "Python flexible slugify function";
license = lib.licenses.gpl3;
platforms = lib.platforms.all;
maintainers = [ ];
};
}