2021-07-24 12:14:16 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pytestCheckHook
|
|
|
|
, python
|
|
|
|
, 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";
|
|
|
|
version = "5.0.2";
|
|
|
|
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;
|
|
|
|
sha256 = "sha256-8TODoLn8vmSaGJK5yOtPjqsdbYS4S7emJDF6+pgVnKs=";
|
|
|
|
};
|
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
|
|
|
|
2021-07-24 12:14:16 +00:00
|
|
|
pytestFlagsArray = [ "test.py" ];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "slugify" ];
|
|
|
|
|
|
|
|
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
|
|
|
}
|