77976348d2
GitOrigin-RevId: 9aeeb7574fb784eaf6395f4400705b5f619e6cc3
45 lines
838 B
Nix
45 lines
838 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, regex
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "titlecase";
|
|
version = "2.3";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ppannuto";
|
|
repo = "python-titlecase";
|
|
rev = "v${version}";
|
|
sha256 = "169ywzn5wfzwyknqavspkdpwbx31nycxsxkl7iywwk71gs1lskkw";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
regex
|
|
];
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pytestFlagsArray = [
|
|
"titlecase/tests.py"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"titlecase"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python library to capitalize strings as specified by the New York Times";
|
|
homepage = "https://github.com/ppannuto/python-titlecase";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|