ch9344: 2.0 -> 0-unstable-2024-11-15 (#354536)
[NixPkgs.git] / pkgs / development / python-modules / python-slugify / default.nix
blob142e5883cf8a728e09df868ddc1f275dadc5767d
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   pytestCheckHook,
6   pythonOlder,
7   setuptools,
8   text-unidecode,
9   unidecode,
12 buildPythonPackage rec {
13   pname = "python-slugify";
14   version = "8.0.4";
15   pyproject = true;
17   disabled = pythonOlder "3.7";
19   src = fetchFromGitHub {
20     owner = "un33k";
21     repo = "python-slugify";
22     rev = "refs/tags/v${version}";
23     hash = "sha256-zReUMIkItnDot3XyYCoPUNHrrAllbClWFYcxdTy3A30=";
24   };
26   nativeBuildInputs = [ setuptools ];
28   propagatedBuildInputs = [ text-unidecode ];
30   optional-dependencies = {
31     unidecode = [ unidecode ];
32   };
34   nativeCheckInputs = [ pytestCheckHook ];
36   pytestFlagsArray = [ "test.py" ];
38   pythonImportsCheck = [ "slugify" ];
40   meta = with lib; {
41     description = "Python Slugify application that handles Unicode";
42     mainProgram = "slugify";
43     homepage = "https://github.com/un33k/python-slugify";
44     changelog = "https://github.com/un33k/python-slugify/blob/v${version}/CHANGELOG.md";
45     license = licenses.mit;
46     maintainers = [ ];
47   };