mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-14 15:26:34 +01:00
39 lines
849 B
Nix
39 lines
849 B
Nix
{
|
|
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 = [ ];
|
|
};
|
|
})
|