2021-07-24 12:14:16 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, text-unidecode
|
|
|
|
, unidecode
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-07-24 12:14:16 +00:00
|
|
|
pname = "python-slugify";
|
2022-03-05 16:20:37 +00:00
|
|
|
version = "6.1.0";
|
|
|
|
format = "setuptools";
|
|
|
|
|
2021-07-24 12:14:16 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-07-24 12:14:16 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-03-05 16:20:37 +00:00
|
|
|
hash = "sha256-7/GQ5N+sl9L4wYkO5oJwns0jZQdCNhaH24LZXh5eJfU=";
|
2021-07-24 12:14:16 +00:00
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-07-24 12:14:16 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
text-unidecode
|
|
|
|
unidecode
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-07-24 12:14:16 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
pytestFlagsArray = [
|
|
|
|
"test.py"
|
|
|
|
];
|
2021-07-24 12:14:16 +00:00
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"slugify"
|
|
|
|
];
|
2021-07-24 12:14:16 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python Slugify application that handles Unicode";
|
|
|
|
homepage = "https://github.com/un33k/python-slugify";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ vrthra ];
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
}
|