mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-13 19:43:02 +08:00
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>
49 lines
1023 B
Nix
49 lines
1023 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
setuptools,
|
|
text-unidecode,
|
|
unidecode,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-slugify";
|
|
version = "8.0.4";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "un33k";
|
|
repo = "python-slugify";
|
|
tag = "v${version}";
|
|
hash = "sha256-zReUMIkItnDot3XyYCoPUNHrrAllbClWFYcxdTy3A30=";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools ];
|
|
|
|
propagatedBuildInputs = [ text-unidecode ];
|
|
|
|
optional-dependencies = {
|
|
unidecode = [ unidecode ];
|
|
};
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
enabledTestPaths = [ "test.py" ];
|
|
|
|
pythonImportsCheck = [ "slugify" ];
|
|
|
|
meta = {
|
|
description = "Python Slugify application that handles Unicode";
|
|
mainProgram = "slugify";
|
|
homepage = "https://github.com/un33k/python-slugify";
|
|
changelog = "https://github.com/un33k/python-slugify/blob/v${version}/CHANGELOG.md";
|
|
license = lib.licenses.mit;
|
|
maintainers = [ ];
|
|
};
|
|
}
|