at master 888 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 gitUpdater, 7 pytestCheckHook, 8 libcst, 9 pyyaml, 10}: 11 12buildPythonPackage rec { 13 pname = "trubar"; 14 version = "0.3.4"; 15 pyproject = true; 16 17 src = fetchFromGitHub { 18 owner = "janezd"; 19 repo = "trubar"; 20 tag = version; 21 hash = "sha256-ChKmeACEMnFcMYSdkdVlFiE3td171ihUS2A+qsP5ASk="; 22 }; 23 24 build-system = [ setuptools ]; 25 26 dependencies = [ 27 libcst 28 pyyaml 29 ]; 30 31 pythonImportsCheck = [ "trubar" ]; 32 33 nativeCheckInputs = [ pytestCheckHook ]; 34 35 passthru.updateScript = gitUpdater { }; 36 37 meta = { 38 description = "Utility for translation of strings and f-strings in Python files"; 39 homepage = "https://github.com/janezd/trubar"; 40 changelog = "https://github.com/janezd/trubar/releases/tag/${version}"; 41 license = [ lib.licenses.mit ]; 42 maintainers = [ lib.maintainers.lucasew ]; 43 }; 44}