nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 45 lines 975 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6 setuptools, 7 text-unidecode, 8 unidecode, 9}: 10 11buildPythonPackage rec { 12 pname = "python-slugify"; 13 version = "8.0.4"; 14 pyproject = true; 15 16 src = fetchFromGitHub { 17 owner = "un33k"; 18 repo = "python-slugify"; 19 tag = "v${version}"; 20 hash = "sha256-zReUMIkItnDot3XyYCoPUNHrrAllbClWFYcxdTy3A30="; 21 }; 22 23 nativeBuildInputs = [ setuptools ]; 24 25 propagatedBuildInputs = [ text-unidecode ]; 26 27 optional-dependencies = { 28 unidecode = [ unidecode ]; 29 }; 30 31 nativeCheckInputs = [ pytestCheckHook ]; 32 33 enabledTestPaths = [ "test.py" ]; 34 35 pythonImportsCheck = [ "slugify" ]; 36 37 meta = { 38 description = "Python Slugify application that handles Unicode"; 39 mainProgram = "slugify"; 40 homepage = "https://github.com/un33k/python-slugify"; 41 changelog = "https://github.com/un33k/python-slugify/blob/v${version}/CHANGELOG.md"; 42 license = lib.licenses.mit; 43 maintainers = [ ]; 44 }; 45}