2021-06-08 21:17:40 +02:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, text-unidecode
|
|
|
|
, unidecode
|
|
|
|
}:
|
2017-05-02 21:17:48 -07:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-06-08 21:17:40 +02:00
|
|
|
pname = "python-slugify";
|
2022-02-23 09:39:38 +01:00
|
|
|
version = "6.1.0";
|
|
|
|
format = "setuptools";
|
|
|
|
|
2021-06-08 21:17:40 +02:00
|
|
|
disabled = pythonOlder "3.6";
|
2017-05-02 21:17:48 -07:00
|
|
|
|
2021-06-08 21:17:40 +02:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-02-23 09:39:38 +01:00
|
|
|
hash = "sha256-7/GQ5N+sl9L4wYkO5oJwns0jZQdCNhaH24LZXh5eJfU=";
|
2021-06-08 21:17:40 +02:00
|
|
|
};
|
2017-05-02 21:17:48 -07:00
|
|
|
|
2021-06-08 21:17:40 +02:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
text-unidecode
|
|
|
|
unidecode
|
|
|
|
];
|
2019-04-25 13:07:03 +02:00
|
|
|
|
2021-06-08 21:17:40 +02:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2017-05-02 21:17:48 -07:00
|
|
|
|
2022-02-23 09:39:38 +01:00
|
|
|
pytestFlagsArray = [
|
|
|
|
"test.py"
|
|
|
|
];
|
2021-06-08 21:17:40 +02:00
|
|
|
|
2022-02-23 09:39:38 +01:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"slugify"
|
|
|
|
];
|
2021-06-08 21:17:40 +02: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 ];
|
|
|
|
};
|
2017-05-02 21:17:48 -07:00
|
|
|
}
|