1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytestCheckHook 5, pythonOlder 6, text-unidecode 7, unidecode 8}: 9 10buildPythonPackage rec { 11 pname = "python-slugify"; 12 version = "8.0.1"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchFromGitHub { 18 owner = "un33k"; 19 repo = pname; 20 rev = "refs/tags/v${version}"; 21 hash = "sha256-MJac63XjgWdUQdyyEm8O7gAGVszmHxZzRF4frJtR0BU="; 22 }; 23 24 propagatedBuildInputs = [ 25 text-unidecode 26 ]; 27 28 passthru.optional-dependencies = { 29 unidecode = [ 30 unidecode 31 ]; 32 }; 33 34 nativeCheckInputs = [ 35 pytestCheckHook 36 ]; 37 38 pytestFlagsArray = [ 39 "test.py" 40 ]; 41 42 pythonImportsCheck = [ 43 "slugify" 44 ]; 45 46 meta = with lib; { 47 description = "Python Slugify application that handles Unicode"; 48 homepage = "https://github.com/un33k/python-slugify"; 49 changelog = "https://github.com/un33k/python-slugify/blob/v${version}/CHANGELOG.md"; 50 license = licenses.mit; 51 maintainers = with maintainers; [ vrthra ]; 52 }; 53}