blob: 79c38ed2a51eacaa91c81de8eb5fa9938af6af96 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
regex,
setuptools-scm,
}:
buildPythonPackage (finalAttrs: {
pname = "titlecase";
version = "2.4.1";
pyproject = true;
src = fetchFromGitHub {
owner = "ppannuto";
repo = "python-titlecase";
tag = "v${finalAttrs.version}";
hash = "sha256-s+C0UOKLEpMksfePIB6VzTv0dFLeamurdxjf5u1ek3g=";
};
build-system = [ setuptools-scm ];
dependencies = [ regex ];
nativeCheckInputs = [ pytestCheckHook ];
enabledTestPaths = [ "titlecase/tests.py" ];
pythonImportsCheck = [ "titlecase" ];
meta = {
description = "Python library to capitalize strings as specified by the New York Times";
mainProgram = "titlecase";
homepage = "https://github.com/ppannuto/python-titlecase";
license = lib.licenses.mit;
maintainers = [ ];
};
})
|