1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 fetchpatch, 6 pytestCheckHook, 7 six, 8 unidecode, 9}: 10 11buildPythonPackage rec { 12 pname = "unicode-slugify"; 13 version = "0.1.5"; 14 format = "setuptools"; 15 16 src = fetchPypi { 17 inherit pname version; 18 sha256 = "25f424258317e4cb41093e2953374b3af1f23097297664731cdb3ae46f6bd6c3"; 19 }; 20 21 patches = [ 22 ./use_pytest_instead_of_nose.patch 23 # mozilla/unicode-slugify#41: Fix Python 3.12 SyntaxWarning 24 (fetchpatch { 25 url = "https://github.com/mozilla/unicode-slugify/commit/a18826f440d0b74e536f5e32ebdcf30e720f20d8.patch"; 26 hash = "sha256-B27psp0XI5GhoR0l5lFpUOh88hHzjJYzJS5PnIkfFws="; 27 }) 28 ]; 29 30 propagatedBuildInputs = [ 31 six 32 unidecode 33 ]; 34 35 nativeCheckInputs = [ pytestCheckHook ]; 36 37 enabledTestPaths = [ "slugify/tests.py" ]; 38 39 meta = with lib; { 40 description = "Generates unicode slugs"; 41 homepage = "https://pypi.org/project/unicode-slugify/"; 42 license = licenses.bsd3; 43 maintainers = with maintainers; [ mmai ]; 44 }; 45}