2021-10-17 02:12:59 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, regex
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "titlecase";
|
2021-08-27 14:25:00 +00:00
|
|
|
version = "2.3";
|
2021-10-17 02:12:59 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-10-17 02:12:59 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ppannuto";
|
|
|
|
repo = "python-titlecase";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "169ywzn5wfzwyknqavspkdpwbx31nycxsxkl7iywwk71gs1lskkw";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-10-17 02:12:59 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
regex
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2020-10-16 20:44:37 +00:00
|
|
|
|
2021-10-17 02:12:59 +00:00
|
|
|
pytestFlagsArray = [
|
|
|
|
"titlecase/tests.py"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-10-17 02:12:59 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"titlecase"
|
|
|
|
];
|
2021-08-27 14:25:00 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2021-10-17 02:12:59 +00:00
|
|
|
description = "Python library to capitalize strings as specified by the New York Times";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/ppannuto/python-titlecase";
|
2021-08-27 14:25:00 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|